jeffreykemp / jk64-plugin-reportmap

Report Google Map APEX Plugin
https://jeffreykemp.github.io/jk64-plugin-reportmap/
MIT License
43 stars 16 forks source link

Combine GeoJSON with Marker Clustering #151

Closed simongadd closed 2 years ago

simongadd commented 3 years ago

Hi Jeffrey

Is it possible to combine two visualisations? In my Use Case, I'd like to see different jurisdictions as well as the pin clusters.

Many thanks

Simon

jeffreykemp commented 3 years ago

Only one visualisation can be chosen, but with some JavaScript you can add additional layers to the map after page load.

In your scenario, I would show the pins using the Clustering visualisation, and then after page load call the loadGeoJsonString API https://github.com/jeffreykemp/jk64-plugin-reportmap/wiki/Plugin-API-Reference#loadgeojsonstring to show the additional layer.