Wykks / ngx-mapbox-gl

Angular binding of mapbox-gl-js

Home Page:https://wykks.github.io/ngx-mapbox-gl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to re render mgl-markers-for-cluster

jagabs opened this issue · comments

commented

how do you reload this if it has errors rendering the first time? or like if users click it and before loading changes route.

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