BT-Creator / maplibre-cwc

A Web components library for easily integrate MapLibre Maps in a declarative manner
MIT License
0 stars 0 forks source link

Implement `center` and `zoom` prop in `maplibre-map` #38

Open BT-Creator opened 1 year ago

BT-Creator commented 1 year ago

This issue is about implement zoomand center into the maplibre-mapcomponent. This controls how much the map is zoomed in and where the map is centered on. Note that this needs to work when the map is loaded (The initial state) and when the map is already loaded, but the values are updated.

You can achieve this with the options.zoom , options.center, Map.setCenter() and Map.setZoom()