bluehalo / ngx-leaflet-markercluster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2 different sets of leafletMarkerCluster

opened this issue · comments

Hello. How can i use with leaflet directive 2 different sets of leafletMarkerCluster with different leafletMarkerClusterOptions ?

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>

Closing as answered.