@maplibre/ngx-maplibre-gl

    Class MarkersForClustersComponent

    [ngx] mgl-markers-for-clusters - an HTML marker component for clustered points. Requires a geojson source that is clustered.

    ...
    <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.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    source: InputSignal<string> = ...

    Init input

    Methods

    MMNEPVFCICPMFPCPTTAAATR