Constructor
new MarkerManager(map, isMultiMarkers)
Parameters:
Name | Type | Description |
---|---|---|
map |
Map | target open layer Map object |
isMultiMarkers |
boolean | displays only last marker if false, all markers if true |
Methods
_getStyle(label) → {Style}
Returns a Style object defining a marker
Parameters:
Name | Type | Description |
---|---|---|
label |
string |
Returns:
an open layers Style object
- Type
- Style
addMarker(pixRa, pixDec, label)
Adds a new marker on map
Parameters:
Name | Type | Description |
---|---|---|
pixRa |
number | RA in pixels (int) |
pixDec |
number | DEC in pixels (int) |
label |
string | label of the marker |
clearMarkers()
Removes all markers