java.lang.Object | |
↳ | com.mapsted.map.events.MapstedMapEventManager |
Manager class for implementing map events and map vector element events
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MapstedMapEventManager(MapApi mapApi) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
addMapClickListener(MapApi.MapClickListener listener)
Register a map click listener (e.g.
| ||||||||||
boolean |
addMapEventListener(MapApi.MapEventListener listener)
Register a map event listener (e.g.
| ||||||||||
boolean | isAutomatedClickProcessing() | ||||||||||
void | onDestroy() | ||||||||||
void |
onMapClicked(MapClickInfo mapClickInfo)
Base map has been clicked
| ||||||||||
void |
onMapIdle()
Called when the map is idle
| ||||||||||
void |
onMapMoved()
Called when the map is moved
| ||||||||||
void |
onMapStable()
Called when the map is stable
| ||||||||||
boolean |
onVectorElementClicked(VectorElementClickInfo clickInfo)
Vector element on map has been clicked.
| ||||||||||
boolean |
onVectorTileClicked(VectorTileClickInfo clickInfo)
Vector Tile element on map has been clicked (carto-css)
Vector Tiles are elements like entites on the map drawn via carto-css
| ||||||||||
boolean |
removeMapClickListener(MapApi.MapClickListener listener)
Unregister a map click listener (e.g.
| ||||||||||
boolean |
removeMapEventListener(MapApi.MapEventListener listener)
Unregister a map event listener (e.g.
| ||||||||||
void |
setAllowNonSearchableEntitySelecting(boolean enable)
Control whether or not map listener allows the selection of non-searchable entities
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Register a map click listener (e.g. single, double, dual, long) MapClickEvent
listener | the listener to register |
---|
Register a map event listener (e.g. map move, map idle, map stable) MapEvent
listener | the listener to register |
---|
Base map has been clicked
mapClickInfo | Object which consists of click type and click position |
---|
Called when the map is idle
Called when the map is moved
Called when the map is stable
Vector element on map has been clicked. Vector Elements are items like Icons, MapOverlays, etc.
clickInfo | Object of VectorElementClickInfo consisting of position and layer information |
---|
Vector Tile element on map has been clicked (carto-css) Vector Tiles are elements like entites on the map drawn via carto-css
Unregister a map click listener (e.g. single, double, dual, long) MapClickEvent
listener | the listener to unregister |
---|
Unregister a map event listener (e.g. map move, map idle, map stable) MapEvent
listener | the listener to unregister |
---|
Control whether or not map listener allows the selection of non-searchable entities
enable | whether or not to allow |
---|