Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

ol-mapbox-style

Package Overview
Dependencies
Maintainers
4
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ol-mapbox-style - npm Package Compare versions

Comparing version 9.7.0 to 10.0.0

26

CHANGELOG.md

@@ -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 @@

2

dist/examples/data/geojson-wfs.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc