| 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. 
  
   | ||||||||||
| void | 
        changeAutomatedClickProcessingState(boolean enable)
        
         Control whether or not map listener will automatically handle click processing 
  
   | ||||||||||
| boolean | isAutomatedClickProcessing() | ||||||||||
| void | onDestroy() | ||||||||||
| void | 
        onMapClicked(MapClickInfo mapClickInfo)
        
         Called when the map is 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
 
  
   | ||||||||||
| synchronized boolean | 
        onVectorElementClicked(VectorElementClickInfo clickInfo)
        
         Callback coming from  
  
  VectorElementListener class | ||||||||||
| synchronized boolean | onVectorTileClicked(VectorTileClickInfo clickInfo) | ||||||||||
| 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  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   
From class
  java.lang.Object
 | |||||||||||
   
From interface
  com.mapsted.map.events.IMapstedMapEventListener
 | |||||||||||
   
From interface
  com.mapsted.map.events.IMapstedVectorElementListener
 | |||||||||||
   
From interface
  com.mapsted.map.events.IMapstedVectorTileClicked
 | |||||||||||
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 | 
|---|
Control whether or not map listener will automatically handle click processing
| enable | whether or not to allow | 
|---|
Called when the map is 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
Callback coming from VectorElementListener class
| clickInfo | Object of VectorElementClickInfo consisting of position and layer information | 
|---|
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 | 
|---|