ol-mapbox-style
Advanced tools
Comparing version 10.3.1 to 10.3.2
@@ -5,2 +5,6 @@ # Changelog | ||
## 10.3.2 | ||
* Export `removeMapboxLayer` | ||
## 10.3.1 | ||
@@ -7,0 +11,0 @@ |
export { stylefunction, recordStyleLayer, renderTransparent } from "./stylefunction.js"; | ||
export { apply as default, apply, applyBackground, applyStyle, getFeatureState, setFeatureState, getLayer, getLayers, getSource, getMapboxLayer, updateMapboxLayer, addMapboxLayer } from "./apply.js"; | ||
export { apply as default, apply, applyBackground, applyStyle, getFeatureState, setFeatureState, getLayer, getLayers, getSource, getMapboxLayer, updateMapboxLayer, addMapboxLayer, removeMapboxLayer } from "./apply.js"; |
{ | ||
"name": "ol-mapbox-style", | ||
"version": "10.3.1", | ||
"version": "10.3.2", | ||
"description": "Create OpenLayers maps from Mapbox Style objects", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -121,2 +121,3 @@ # ol-mapbox-style | ||
- [recordStyleLayer](#recordStyleLayer) | ||
- [removeMapboxLayer](#removeMapboxLayer) | ||
- [renderTransparent](#renderTransparent) | ||
@@ -422,2 +423,21 @@ - [setFeatureState](#setFeatureState) | ||
#### removeMapboxLayer | ||
▸ **removeMapboxLayer**(`mapOrGroup`, `mapboxLayerIdOrLayer`): `void` | ||
Remove a Mapbox Layer object from the style. The map will be re-rendered. | ||
##### Parameters | ||
| Name | Type | Description | | ||
| :--------------------- | :-------------------- | :------------------------------------------- | | ||
| `mapOrGroup` | `Map` \| `LayerGroup` | The Map or LayerGroup `apply` was called on. | | ||
| `mapboxLayerIdOrLayer` | `any` | Mapbox Layer id or Mapbox Layer object. | | ||
##### Returns | ||
`void` | ||
* * * | ||
#### renderTransparent | ||
@@ -424,0 +444,0 @@ |
@@ -19,2 +19,3 @@ export { | ||
addMapboxLayer, | ||
removeMapboxLayer, | ||
} from './apply.js'; |
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
6477163
21611
774