Skip to content

Latest commit

 

History

History
357 lines (186 loc) · 19.9 KB

CHANGELOG.md

File metadata and controls

357 lines (186 loc) · 19.9 KB

svelte-maplibre

0.9.14

Patch Changes

  • d84def9 Thanks @ciscorn! - Defer updating Layer’s layout and paint properties until Map style is fully loaded

0.9.13

Patch Changes

0.9.12

Patch Changes

  • #195 aeaf638 Thanks @dimfeld! - Fix marker popups not closing properly when clicking on a different marker. This broke in v0.9.0

0.9.11

Minor Changes

0.9.10

Patch Changes

0.9.9

Patch Changes

  • #180 9e999f1 Thanks @dimfeld! - Add draw-plugin.css CSS file, which you can import to help with integrating the Mapbox Draw plugin

0.9.8

Patch Changes

0.9.7

Patch Changes

  • #175 c857517 Thanks @dimfeld! - Allow providing custom hash update function for better framework compatibility

0.9.6

Patch Changes

0.9.5

Patch Changes

0.9.4

Minor Changes

  • #171 d968425 Thanks @thijserven! - Exposed control value of GeolocateControl so you can do bind:control and access the root maplibre-gl functionalities from the outside.

0.9.3

Minor Changes

0.9.2

Minor Changes

  • #161 90ddec8 Thanks @dimfeld! - Add MapEvents component that makes it easier to subscribe to map events from inside Map components

0.9.1

Patch Changes

0.9.0

Minor Changes

  • #159 23fb3ab Thanks @dimfeld! - MapLibre component now exposes its <div> element on the mapContainer prop

  • #160 756a1ef Thanks @dimfeld! - Update Marker and DefaultMarker to expose the internal maplibregl.Marker through the marker prop

  • #157 417d468 Thanks @dabreegster! - Stop propagation of clicks on Markers

Patch Changes

0.8.5

Patch Changes

0.8.4

Patch Changes

0.8.3

Patch Changes

0.8.2

Minor Changes

Patch Changes

0.8.1

Patch Changes

0.8.0

Major Changes

  • #128 802474a Thanks @dimfeld! - Support maplibre v4

    All the breaking changes in the MaplibreGL JS v4 release apply here. Some specific API changes to this package:

    • Upgrade maplibregl-js to ^4.0.0
    • Upgrade pmtiles to ^3.0.3
    • cooperativeGestures prop is now just a boolean to match maplibre v4.
    • Add locale property to MapLibre component.
    • Add opacity property for Markers

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

0.7.6

Minor Changes

0.7.5

Minor Changes

0.7.4

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

0.7.3

Minor Changes

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

0.7.1

Minor Changes

0.7.0

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.

0.6.0

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

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

0.5.2

Minor Changes

0.5.1

Patch Changes

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.

0.4.3

Minor Changes

Patch Changes

0.4.2

Minor Changes

0.4.1

Minor Changes

Added missing export for VectorTileSource.

0.4.0

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

0.3.5

Patch Changes

  • #54 e5d8a09 Avoid clobbering MapLibre's added classes on Marker elements

  • #54 e5d8a09 Support draggable and drag events on MarkerLayer

  • #55 7b94240 Allow disabling zoom on double click

  • #55 7b94240 Support dblclick and contextmenu events on layesrs and markers

  • #56 3cec7bf Handle updates to the MapLibre component's style prop

0.3.4

  • 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.

0.3.3

  • Support draggable on Marker

0.3.2

  • Properly manage hover state on features with ID 0

0.3.1

  • Lazily load deck.gl library so that the rest of the package can be used without including it.

0.3.0

  • Support Svelte 4
  • Upgrade to fully-released version of MapLibre GL 3.0

0.2.2

  • Support transformRequest property on Map component.

0.2.1

  • Fix layers not removing while data sources elsewhere in the map are loading