[ngx] mgl-markers-for-clusters - an HTML marker component for clustered points. Requires a geojson source that is clustered.
mgl-markers-for-clusters
...<mgl-map ...> <mgl-markers-for-cluster [source]="myGeoJsonclusteredSource"> <ng-template mglPoint let-feature> Marker! </ng-template> <ng-template mglClusterPoint let-feature> ClusterId: {{feature.properties?.cluster_id}}, Points: {{feature.properties?.point_count}} </ng-template> </mgl-markers-for-cluster></mgl-map> Copy
...<mgl-map ...> <mgl-markers-for-cluster [source]="myGeoJsonclusteredSource"> <ng-template mglPoint let-feature> Marker! </ng-template> <ng-template mglClusterPoint let-feature> ClusterId: {{feature.properties?.cluster_id}}, Points: {{feature.properties?.point_count}} </ng-template> </mgl-markers-for-cluster></mgl-map>
Note: Only use this if you really need to use HTML/Angular component to render your symbols. This is slower than rendering symbols in WebGL.
Readonly
Init input
[ngx]
mgl-markers-for-clusters
- an HTML marker component for clustered points. Requires a geojson source that is clustered.Example
Note: Only use this if you really need to use HTML/Angular component to render your symbols. This is slower than rendering symbols in WebGL.