svelte-maplibre

Svelte bindings for the MapLibre mapping library

MIT License

Downloads
30K
Stars
318
Committers
3

Bot releases are visible (Hide)

svelte-maplibre -

Published by dimfeld 9 months ago

0.7.7

Patch Changes

  • #123 b97d4c5 Thanks @dimfeld! - Explicitly unsubscribe from events in Layer to avoid race condition between Layer and containing Source being torn down

  • #123 b97d4c5 Thanks @dimfeld! - Properly remove Popup if it is open when the Popup component is destroyed

svelte-maplibre -

Published by dimfeld 9 months ago

0.7.6

Minor Changes

svelte-maplibre -

Published by dimfeld 10 months ago

0.7.5

Minor Changes

svelte-maplibre -

Published by dimfeld 10 months ago

Minor Changes

Patch Changes

  • #111 8821852 Thanks @dimfeld! - Update imports to work with Vite 5 and Node.js

  • #113 28f1dd1 Thanks @dimfeld! - Add "default" export condition to help frameworks that don't add "svelte" to their list

svelte-maplibre - v0.7.3

Published by dimfeld 11 months ago

0.7.3

Minor Changes

svelte-maplibre -

Published by dimfeld 11 months ago

0.7.2

Patch Changes

  • 25d840c Thanks @dimfeld! - Add type definition for events emitted by MarkerLayer

  • 25d840c Thanks @dimfeld! - Fix missing type definition file for Marker.svelte

svelte-maplibre -

Published by dimfeld 11 months ago

0.7.1

Minor Changes

svelte-maplibre -

Published by dimfeld 11 months ago

Major Changes

  • #92 3800dbc Thanks @dabreegster! - Add RasterTileSource and RasterLayer. This is a breaking change in that the required version of maplibre-gl is changed from ^3.0.0 to ^3.5.0.
svelte-maplibre -

Published by dimfeld 12 months ago

Major Changes

Allow setting layers to be non-interactive. Layers with interactive={false} will not emit mouse events, and will not
participate in hit testing when comparing to other layers with eventsIfTopMost.

This is useful, for example, when placing a SymbolLayer on top of a
CircleLayer. See the updated "Clusters and Popups" example; previous the popup would disappear when the mouse was over
the labels, but not it does not.

This is a breaking change:

  • The interactive prop for Marker and MarkerLayer has been renamed to asButton, to make room for the new
    interactive prop.
  • DeckGlLayer still continues to allow the pickable prop, but interactive should be used instead for consistency.
    The behavior here is unchanged though.

Minor Changes

Patch Changes

svelte-maplibre -

Published by dimfeld about 1 year ago

0.5.3

Minor Changes

  • #90 44df623 Thanks @dimfeld! - Add all components to the export map. This allows importing like "svelte-maplibre/MapLibre.svelte" in addition to importing everything from the package root.

Patch Changes

  • #88 8d03d54 Thanks @dimfeld! - Properly remove sources and handle the source being quickly replaced

  • #89 23bc94a Thanks @dimfeld! - Export JoinedData from index file, mark sourceLayer optional

svelte-maplibre -

Published by dimfeld about 1 year ago

0.5.2

Minor Changes

svelte-maplibre -

Published by dimfeld about 1 year ago

0.5.1

Patch Changes

svelte-maplibre - v0.5.0

Published by dimfeld about 1 year ago

0.5.0

Major Changes

  • #71 821c3bd Thanks @dabreegster! - Make eventsIfTopMost also work for manageHoverState, and introduce
    openIfTopMost for Popups. openIfTopMost defaults to true, which changes the default behavior for overlapping popups.

Patch Changes

  • #75 accb09d Thanks @mhrgoldberg! - Fix GeoJSON component reactivity to data changes after map styles are updated.
svelte-maplibre - v0.4.3

Published by dimfeld about 1 year ago

0.4.3

Minor Changes

Patch Changes

svelte-maplibre - v0.4.2 - allow setting Marker `offset`

Published by dimfeld about 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/dimfeld/svelte-maplibre/compare/v0.4.1...v0.4.2

svelte-maplibre - v0.4.1

Published by dimfeld about 1 year ago

Patch Changes

Full Changelog: https://github.com/dimfeld/svelte-maplibre/compare/v0.4.0...v0.4.1

svelte-maplibre -

Published by dimfeld about 1 year ago

Major Changes

  • #61 Thanks @dabreegster! - Consistent default values for manageHoverState. The default value for manageHoverState on all Layer types is now false, which is a breaking change.

Patch Changes

svelte-maplibre - Better handling of mouse events on overlapping layers

Published by dimfeld about 1 year ago

  • Support 2-way binding for latLng on draggable markers.
  • Add eventsIfTopMost to Layers, to only fire mouse events if the layer is the top-most layer under the mouse pointer. Example
svelte-maplibre - Support draggable markers

Published by dimfeld about 1 year ago

This release adds support for the draggable property on Markers, and adds related drag events. Thanks @FluffyDiscord for the PR!

svelte-maplibre - Hover management fix

Published by dimfeld over 1 year ago

Hover state was not properly managed for features with ID 0. Thanks @dabreegster for the fix!