diff --git a/.changeset/fix-maplibre-data-style-load-race.md b/.changeset/fix-maplibre-data-style-load-race.md deleted file mode 100644 index d367327..0000000 --- a/.changeset/fix-maplibre-data-style-load-race.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@xtramaps/web-map-maplibre-react": patch ---- - -Fix data (e.g. GeoJSON from `data` URL) intermittently not being added and the map not fitting its bounds: adding data waited for `map.isStyleLoaded()`/`styledata`, but `isStyleLoaded()` also waits for all visible tiles, and `styledata` does not fire again once the style is loaded. It now waits for the style itself (`map.getStyle()`/`style.load`). diff --git a/packages/react/layer-control-maplibre/package.json b/packages/react/layer-control-maplibre/package.json index 2cc7f25..4060199 100644 --- a/packages/react/layer-control-maplibre/package.json +++ b/packages/react/layer-control-maplibre/package.json @@ -48,7 +48,7 @@ "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^6.0.0", "@vis.gl/react-maplibre": "^8.1.2", - "@xtramaps/web-map-maplibre-react": "1.1.0", + "@xtramaps/web-map-maplibre-react": "1.1.1", "maplibre-gl": "^6.3.0", "react": "^19.2.4", "react-dom": "^19.2.4", diff --git a/packages/react/web-map-maplibre/CHANGELOG.md b/packages/react/web-map-maplibre/CHANGELOG.md index 2da6741..ca72114 100644 --- a/packages/react/web-map-maplibre/CHANGELOG.md +++ b/packages/react/web-map-maplibre/CHANGELOG.md @@ -1,5 +1,11 @@ # @xtramaps/web-map-maplibre-react +## 1.1.1 + +### Patch Changes + +- de50093: Fix data (e.g. GeoJSON from `data` URL) intermittently not being added and the map not fitting its bounds: adding data waited for `map.isStyleLoaded()`/`styledata`, but `isStyleLoaded()` also waits for all visible tiles, and `styledata` does not fire again once the style is loaded. It now waits for the style itself (`map.getStyle()`/`style.load`). + ## 1.1.0 ### Minor Changes diff --git a/packages/react/web-map-maplibre/package.json b/packages/react/web-map-maplibre/package.json index a9d2d9c..d864a46 100644 --- a/packages/react/web-map-maplibre/package.json +++ b/packages/react/web-map-maplibre/package.json @@ -1,6 +1,6 @@ { "name": "@xtramaps/web-map-maplibre-react", - "version": "1.1.0", + "version": "1.1.1", "license": "MIT", "homepage": "https://github.com/ldproxy/xtramaps/tree/main/packages/react/web-map-maplibre#readme", "repository": {