API Reference for Map Widget
JavaScript API for Map Widget
Background
Geohash
Execution flows
Map widget creation
On map move
On marker clicked
Methods
.initialize(options)
Name
Type
Description
.createMap()
.createLayer(style)
Name
Type
Description
.handleMarkerClick(event
Name
Type
Description
Example usage
.handleMoveEnd()
.createMarkerBySummary(summary)
Name
Type
Description
.on(eventName, handler)
Name
Type
Description
Example usage
.getAggregatedDataByBounds(sw, ne, numGeohashPerView)
Name
Type
Description
Exported methods
.getAggregatedDataByBounds(sw, ne, numGeohashPerView)
Example usage (own Google Maps)
Customization examples
Add logic before/after map widget starts.
Initialize Leaflet with custom options
Use a different map layer (e.g. Google Maps)
Last updated