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 12.2.1 to 12.2.2

4

CHANGELOG.md
# Changelog
## 12.2.2
* Generous peer dependency range for ol
## 12.2.1

@@ -4,0 +8,0 @@

6

dist/stylefunction.d.ts

@@ -97,3 +97,3 @@ /**

*/
export function stylefunction(olLayer: import("ol/layer/Vector").default<any> | VectorTileLayer, glStyle: string | any, sourceOrLayers: string | Array<string>, resolutions?: Array<number>, spriteData?: any, spriteImageUrl?: string | Request | Promise<string | Request>, getFonts?: (arg0: Array<string>, arg1: string | undefined) => Array<string>, getImage?: ((arg0: import("ol/layer/Vector").default<any> | VectorTileLayer, arg1: string) => HTMLImageElement | HTMLCanvasElement | string | undefined) | undefined, ...args: any[]): StyleFunction;
export function stylefunction(olLayer: import("ol/layer").Vector<any> | VectorTileLayer, glStyle: string | any, sourceOrLayers: string | Array<string>, resolutions?: Array<number>, spriteData?: any, spriteImageUrl?: string | Request | Promise<string | Request>, getFonts?: (arg0: Array<string>, arg1: string | undefined) => Array<string>, getImage?: ((arg0: import("ol/layer").Vector<any> | VectorTileLayer, arg1: string) => HTMLImageElement | HTMLCanvasElement | string | undefined) | undefined, ...args: any[]): StyleFunction;
/**

@@ -107,5 +107,5 @@ * Get the the style for a specific Mapbox layer only. This can be useful for creating a legend.

*/
export function getStyleForLayer(feature: import("ol/Feature").default | import("ol/render/Feature").default, resolution: number, olLayer: import("ol/layer/Vector").default<any> | import("ol/layer").VectorTile, layerId: string): Array<import("ol/style").Style>;
export function getStyleForLayer(feature: import("ol/Feature").default | import("ol/render/Feature").default, resolution: number, olLayer: import("ol/layer").Vector<any> | import("ol/layer").VectorTile, layerId: string): Array<import("ol/style").Style>;
export const styleFunctionArgs: {};
export type VectorLayer = import("ol/layer/Vector").default<any>;
export type VectorLayer = import("ol/layer").Vector<any>;
export type VectorTileLayer = import("ol/layer/VectorTile").default;

@@ -112,0 +112,0 @@ export type StyleFunction = import("ol/style/Style").StyleFunction;

@@ -87,3 +87,3 @@ export function getStyleId(glStyle: any): any;

export type LayerGroup = import("ol/layer").Group;
export type VectorLayer = import("ol/layer/Vector.js").default<any>;
export type VectorLayer = import("ol/layer").Vector<any>;
export type VectorTileLayer = import("ol/layer").VectorTile;

@@ -90,0 +90,0 @@ export type Source = import("ol/source").Source;

{
"name": "ol-mapbox-style",
"version": "12.2.1",
"version": "12.2.2",
"description": "Create OpenLayers maps from Mapbox Style objects",

@@ -45,3 +45,3 @@ "type": "module",

"peerDependencies": {
"ol": ">=9.0.0 || >=9.0.0-dev.0 <9.0.0 || =9.0.0-dev || >=8.0.0 <=8.2.0 || >=7.0.0 <=7.5.2"
"ol": "*"
},

@@ -87,10 +87,10 @@ "devDependencies": {

"style-loader": "^3.3.1",
"typedoc": "^0.25.1",
"typedoc-plugin-markdown": "^3.15.2",
"typedoc-plugin-missing-exports": "^2.0.0",
"typescript": "^5.2.2",
"typedoc": "^0.25.12",
"typedoc-plugin-markdown": "^3.17.1",
"typedoc-plugin-missing-exports": "^2.2.0",
"typescript": "^5.4.3",
"webpack": "^5.62.1",
"webpack-cli": "^5.0.0",
"webpack-dev-server": "^4.4.0"
"webpack-dev-server": "^5.0.4"
}
}

@@ -1128,6 +1128,2 @@ # ol-mapbox-style

Function that returns an image for an icon name. If the result is an HTMLImageElement, it must already be
loaded. The layer can be used to call layer.changed() when the loading and processing of the image has finished.
This function be used for icons not in the sprite or to override sprite icons.
###### Parameters

@@ -1190,7 +1186,2 @@

Function for controlling how `ol-mapbox-style` fetches resources. Can be used for modifying
the url, adding headers or setting credentials options. Called with the url and the resource
type as arguments, this function is supposed to return a `Request` or a url `string`, or a promise tehereof.
Without a return value the original request will not be modified.
###### Parameters

@@ -1197,0 +1188,0 @@

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