2 different sets of leafletMarkerCluster
opened this issue · comments
Deleted user commented
Hello. How can i use with leaflet directive 2 different sets of leafletMarkerCluster with different leafletMarkerClusterOptions ?
Ryan Blace commented
Do something like this:
<!-- Map -->
<div leaflet style="height: 400px;"
[leafletOptions]="options"
[leafletBaseLayers]="baseLayers"
[leafletLayersControlOptions]="layersControlOptions">
<div
[leafletMarkerCluster]="markerClusterData1"
[leafletMarkerClusterOptions]="markerClusterOptions1"
(leafletMarkerClusterReady)="markerClusterReady1($event)">
</div>
<div
[leafletMarkerCluster]="markerClusterData2"
[leafletMarkerClusterOptions]="markerClusterOptions2"
(leafletMarkerClusterReady)="markerClusterReady2($event)">
</div>
</div>
Ryan Blace commented
Closing as answered.