Open ipula-cstech opened 3 years ago
onClickPolygon($evt: MapLayerMouseEvent) {
this.selectedLngLat = $evt.lngLat;
this.selectedElement = $evt.features![0];
this.map.getSource('states-layer');
this.map.easeTo({
center: this.selectedElement.geometry.coordinates,
zoom: 3
})
this.bounds=[this.map.getBounds().getSouthWest().lng,this.map.getBounds().getSouthWest().lat,this.map.getBounds().getNorthEast().lng,this.map.getBounds().getNorthEast().lat]
}
i want to navigate state -> county like wise help needed