ol-mapbox-style
Advanced tools
Comparing version 9.7.0 to 10.0.0
@@ -5,2 +5,28 @@ # Changelog | ||
## 10.0.0 | ||
### Breaking changes | ||
#### BBOX templates for `geojson` souurces | ||
Previously, the `{bbox-epsg-3857}` and `{bbox-epsg-[custom projection srs code]}` template replacement included the projection's SRS identifier, e.g. `1234,4567,4321,7654,EPSG:9876`. Now, the template replacement just includes the bounding box. This means that e.g. WFS source URLs need to be changed in the Mapbox style. | ||
If you previously had a source definition like | ||
```json | ||
{ | ||
"type": "geojson", | ||
"data": "https://ahocevar.com/geoserver/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=osm:water_areas&outputFormat=application/json&srsname=EPSG:4326&bbox={bbox-epsg-3857}" | ||
} | ||
``` | ||
you have to change it to | ||
```json | ||
{ | ||
"type": "geojson", | ||
"data": "https://ahocevar.com/geoserver/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=osm:water_areas&outputFormat=application/json&srsname=EPSG:4326&bbox={bbox-epsg-3857},EPSG:3857" | ||
} | ||
``` | ||
The reason for this breaking change is compatibility with OCG API Features and other services that do not accept the SRS identifier as additional BBOX parameter. | ||
## 9.7.0 | ||
@@ -7,0 +33,0 @@ |
@@ -10,3 +10,3 @@ { | ||
"type": "geojson", | ||
"data": "https://ahocevar.com/geoserver/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=osm:water_areas&outputFormat=application/json&srsname=EPSG:4326&bbox={bbox-epsg-3857}" | ||
"data": "https://ahocevar.com/geoserver/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=osm:water_areas&outputFormat=application/json&srsname=EPSG:4326&bbox={bbox-epsg-3857},EPSG:3857" | ||
}, | ||
@@ -13,0 +13,0 @@ "osm": { |
{ | ||
"name": "ol-mapbox-style", | ||
"version": "9.7.0", | ||
"version": "10.0.0", | ||
"description": "Create OpenLayers maps from Mapbox Style objects", | ||
@@ -82,3 +82,3 @@ "type": "module", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-unassert": "^0.5.0", | ||
"rollup-plugin-unassert": "^0.6.0", | ||
"should": "^13.2.3", | ||
@@ -85,0 +85,0 @@ "sinon": "^15.0.1", |
@@ -738,6 +738,3 @@ /* | ||
const bboxTemplate = getBboxTemplate(projection); | ||
return geoJsonUrl.replace( | ||
bboxTemplate, | ||
`${extent.join(',')},${projection.getCode()}` | ||
); | ||
return geoJsonUrl.replace(bboxTemplate, `${extent.join(',')}`); | ||
}; | ||
@@ -744,0 +741,0 @@ const source = new VectorSource({ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6457573
21485