new LoggerMap(mapOptions, loggerOptions)
A Logger map object creates a dynamic OpenLayers map and adds the ability to create a report at a specified location, and optionally against a given feature.
Parameters:
Name | Type | Description |
---|---|---|
mapOptions |
module:ol-ishare/litemap~MapOptions | General map options |
loggerOptions |
module:ol-ishare/logger.LoggerMapOptions | Logger-specific options |
Methods
highlightSelection(selection, rgbopt)
Highlights the feature of a selection on the target layer using a coloured outline
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
selection |
Selection | The selection object to highlight |
|
rgb |
Array.<Number> |
<optional> |
Array of three RGB numbers (0-255) indicating the highlight colour |
zoomToSelections(selections, options)
Zooms the map so that all provided selections are in view
Parameters:
Name | Type | Description |
---|---|---|
selections |
Array.<Selection> | Array of selection objects |
options |
ol/View~FitOptions | fit options |
featureForSelection(selection) → {ol/Feature~Feature}
Creates an OpenLayers Feature for a selecton
Parameters:
Name | Type | Description |
---|---|---|
selection |
Selection | The selection object |
Returns:
Feature
- Type
- ol/Feature~Feature
clearHighlights()
Clears highlighted features from the map
clearSelection()
Clears any highlighted target features or query coordinates