New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ol-ext

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ol-ext - npm Package Compare versions

Comparing version 4.0.10 to 4.0.11

3

control/Scale.js

@@ -94,4 +94,5 @@ /* Copyright (c) 2017 Jean-Marc VIGLINO,

if (map && value) {
if (value.target)
if (value.target) {
value = value.target.value;
}
ol_sphere_setMapScale(map, value, this.get('ppi'));

@@ -98,0 +99,0 @@ }

@@ -152,3 +152,3 @@ /*eslint no-constant-condition: ["error", { "checkLoops": false }]*/

// Prevent same coords
if (i == 0 || (dx !== 0 || dy !== 0) || v.length===2) {
if (i == 0 || (dx !== 0 || dy !== 0)) {
p = this.encodeNumber(dx, 0) + ','

@@ -163,3 +163,7 @@ + this.encodeNumber(dy, 0)

// Almost 2 points...
// if (xy.length<2) xy.push('A,A');
if (xy.length < 2 && v.length > 1) {
var p = 'A,A' + (hasZ ? ',A':'') + (hasM ? ',A':'');
xy.push(p);
}
// encoded
return xy.join(';');

@@ -166,0 +170,0 @@ } else {

@@ -124,6 +124,11 @@ import {getDistance as ol_sphere_getDistance} from 'ol/sphere.js'

if (typeof(scale)==='string') {
fac = scale.split('/')[1];
if (!fac) fac = scale;
scale = scale.replace(':','/').split('/');
fac = scale[1];
if (!fac) fac = scale[0] || '';
fac = fac.replace(/[^\d]/g,'');
fac = parseInt(fac);
if (scale[1]) {
var num = parseInt(scale[0]);
if (num) fac /= num;
}
}

@@ -130,0 +135,0 @@ if (!fac) return;

@@ -25,2 +25,3 @@ /* Copyright (c) 2017 Jean-Marc VIGLINO,

* @param { ol.style.Style | Array<ol.style.Style> | StyleFunction | undefined } Style for the selected features, default: default edit style
* @param {function | undefined} options.geometryFunction Draw interaction geometry function to customize the hole
*/

@@ -47,5 +48,5 @@ var ol_interaction_DrawHole = class olinteractionDrawHole extends ol_interaction_Draw {

if (geomFn) {
options.geometryFunction = function (c, g) {
g = _geometryFn(c, g)
return geomFn(c, g)
options.geometryFunction = function (c, g, p) {
g = _geometryFn.bind(this)(c, g)
return geomFn.bind(this)(c, g, p)
}

@@ -52,0 +53,0 @@ } else {

{
"name": "ol-ext",
"version": "4.0.10",
"version": "4.0.11",
"description": "A set of cool extensions for OpenLayers (ol) in node modules structure",

@@ -5,0 +5,0 @@ "main": "dist/ol-ext.js",

Sorry, the diff of this file is too big to display

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