Extension event type for handling feature click events, including overlapping features.
| OpenLayers. | Extension event type for handling feature click events, including overlapping features. |
| Properties | |
| cache | {Object} A cache of features under the mouse. |
| map | {OpenLayers.Map} The map to register browser events on. |
| provides | {Array(String)} The event types provided by this extension. |
| Constructor | |
| OpenLayers. | Create a new featureclick event type. |
| Functions | |
| setMap | |
| start | Sets startEvt = evt. |
| cancel | Deletes the start event. |
| onClick | Listener for the click event. |
| onMousemove | Listener for the mousemove event. |
| triggerEvent | Determines where to trigger the event and triggers it. |
| getFeatures | Get all features at the given screen location. |
| destroy | Clean up. |
| OpenLayers. | Extension event type for handling click events that do not hit a feature. |
| OpenLayers. | Extension event type for handling hovering over a feature. |
| OpenLayers. | Extension event type for handling leaving a feature. |
{OpenLayers.Map} The map to register browser events on.
Create a new featureclick event type.
| target | {OpenLayers.Events} The events instance to create the events for. |
getFeatures: function( evt )
Get all features at the given screen location.
| evt | {Object} Event object. |
{Array(OpenLayers.Feature.Vector)} List of features at the given point.
setMap: function( map )
Sets startEvt = evt.
start: function( evt )
Deletes the start event.
cancel: function( evt )
Listener for the click event.
onClick: function( evt )
Listener for the mousemove event.
onMousemove: function( evt )
Determines where to trigger the event and triggers it.
triggerEvent: function( type, evt )
Get all features at the given screen location.
getFeatures: function( evt )
Clean up.
destroy: function()