beyonk-group / svelte-mapbox

MapBox Map and Autocomplete components for Svelte (or Vanilla JS)
MIT License
343 stars 61 forks source link

method flyTo implementation in map #6

Closed the-yadu closed 4 years ago

the-yadu commented 4 years ago

Changes

  1. Method flyTo added
  2. Method flyTo accept an object as given in documentation ( https://docs.mapbox.com/mapbox-gl-js/example/flyto/ )
  3. Method flyTo exported so that it can be used as a prop in map component.
  4. Updated readme for the usage
  5. Updated code in demo.svelte file