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

@loaders.gl/wms

Package Overview
Dependencies
Maintainers
9
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loaders.gl/wms - npm Package Compare versions

Comparing version 4.0.4 to 4.1.0-alpha.1

19

dist/services/ogc/wms-service.js

@@ -48,3 +48,12 @@ import { ImageLoader } from '@loaders.gl/images';

async getImage(parameters) {
return await this.getMap(parameters);
const {
boundingBox,
bbox,
...rest
} = parameters;
const wmsParameters = {
bbox: boundingBox ? [...boundingBox[0], ...boundingBox[1]] : bbox,
...rest
};
return await this.getMap(wmsParameters);
}

@@ -213,10 +222,2 @@ normalizeMetadata(capabilities) {

break;
case 'boundingBox':
const boundingBox = value;
let bbox2 = [...boundingBox[0], ...boundingBox[1]];
bbox2 = this._flipBoundingBox(boundingBox, wmsParameters);
if (bbox2) {
value = bbox2;
}
break;
case 'bbox':

@@ -223,0 +224,0 @@ const bbox = this._flipBoundingBox(value, wmsParameters);

{
"name": "@loaders.gl/wms",
"version": "4.0.4",
"version": "4.1.0-alpha.1",
"description": "Framework-independent loaders for the WMS (Web Map Service) standard",

@@ -54,10 +54,10 @@ "license": "MIT",

"@babel/runtime": "^7.3.1",
"@loaders.gl/images": "4.0.4",
"@loaders.gl/loader-utils": "4.0.4",
"@loaders.gl/schema": "4.0.4",
"@loaders.gl/xml": "4.0.4",
"@loaders.gl/images": "4.1.0-alpha.1",
"@loaders.gl/loader-utils": "4.1.0-alpha.1",
"@loaders.gl/schema": "4.1.0-alpha.1",
"@loaders.gl/xml": "4.1.0-alpha.1",
"@turf/rewind": "^5.1.5",
"deep-strict-equal": "^0.2.0"
},
"gitHead": "4dc810fa04bb400f4aedfef98a83c7ef882ed3d7"
"gitHead": "6a4d3da93d45115ad99861474a43c3f4a0b280a7"
}

@@ -237,4 +237,9 @@ // loaders.gl, MIT license

async getImage(parameters: GetImageParameters): Promise<ImageType> {
// @ts-expect-error
return await this.getMap(parameters);
// Replace the GetImage `boundingBox` parameter with the WMS flat `bbox` parameter.
const {boundingBox, bbox, ...rest} = parameters;
const wmsParameters: WMSGetMapParameters = {
bbox: boundingBox ? [...boundingBox[0], ...boundingBox[1]] : bbox!,
...rest
};
return await this.getMap(wmsParameters);
}

@@ -502,12 +507,2 @@

case 'boundingBox':
// Coordinate order is flipped for certain CRS in WMS 1.3.0
const boundingBox = value as [[number, number], [number, number]];
let bbox2: number[] | null = [...boundingBox[0], ...boundingBox[1]];
bbox2 = this._flipBoundingBox(boundingBox, wmsParameters);
if (bbox2) {
value = bbox2;
}
break;
case 'bbox':

@@ -514,0 +509,0 @@ // Coordinate order is flipped for certain CRS in WMS 1.3.0

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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