JS API
- Parameters
- Options
- Example
- Methods
- fitToBoundingBox
- getBoundingBox
- getInitialBoundingBox
- getLayers
- getMouseMode
- off
- on
- once
- refresh
- reset
- setMouseMode
- usingLayer
- usingNewLayer
- Events
- Parameters
- Example
- Methods
- addFeature
- addFeatureCollection
- bringForwards
- bufferGeometry
- changeProperties
- clearFilters
- clearFeatures
- clearStyle
- clipByFeatureCollection
- convertToCentroids
- filterByBoundingBox
- filterByFeatureCollection
- filterByNearest
- filterByText
- getFeatureCollection
- hide
- sendBackwards
- show
- style
- update
- usingFeature
Parameters
Name | Required | Description |
---|---|---|
elementId | Yes | The html id for the element (typically a div element) that will host the Mapzania map instance. |
mapKey | Yes | The key of the map to be displayed. |
param1 | No | If param2 is not set and this parameter is a function then it is a parameterless callback function, that is called when the map has finished initialising otherwise it is an object (which can be null) whose properties are used to configure the map. The possible option settings are shown in the table below. |
param2 | No | A parameterless callback function, that is called when the map has finished initialising. This parameter is only used if param1 is set to an options object (which can be null). |