JS API
Map Object
QueryEngine Object
Layer Object
Feature Object
Query Object
GeoJson Function Library (Experimental)

off

Removes all event listeners for an event on the Map object.

Parameters

Name Required Description
type Yes The type (name) of the event for which to clear all listeners.

Example

var map = new Mapzania.Map("map-div", "WORLD");

map.on("roads_layer_queried", function (data) {
  console.log(data);
  map.off("roads_layer_queried");
});