Home
Products
Pricing
Developer
Documentation
API references
Support
Ola for ONDC
Login
Register
Home
Products
Pricing
Developer
Support
Ola for ONDC
Login
Register
Open documentation menu
Documentation menu
Developer guides
Ola Maps Web SDK v2 -
Marker Clustering
This documentation provides methods for adding marker clustering in map.
Add a GeoJSON to map using addSource map method and style it using addLayer’s paint fill layer properties.
JAVASCRIPT
Copy
Add your cluster data in this format.
JAVASCRIPT
Copy
Example
Code for above example:
JAVASCRIPT
HTML
Copy