API DOCUMENTATION
API DOCUMENTATION
Removes an event listener for layer-specific events previously added with Map #on.
map.off(type, layerId, listener)
Parameter | Description |
---|---|
type(string) | The event type previously used to install the listener. |
listener(Function) | The function previously installed as a listener |
layerId(string) | (optional) The layer ID previously used to install the listener. |
map.off('click', function (e) { console.log('Click >>>>>>>',e) //Map Click }) map.off('mouseover', 'fatosmarker', function (e) P if(e.originalEvent.toElement.id){ //marker mouseover console.log('Mouseover>>>>>>>',e) } })