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.9 to 4.0.10

22

control/PrintDialog.js

@@ -38,3 +38,3 @@ /*

* @param {boolean} [options.copy=true] add a copy select option
* @param {boolean} [options.print=true] add a print select option
* @param {boolean} [options.save=true] add a save select option
* @param {boolean} [options.pdf=true] add a pdf select option

@@ -56,10 +56,12 @@ * @param {function} [options.saveAs] a function to save the image as blob

this._lang = options.lang || 'en'
ol_ext_element.create('BUTTON', {
type: 'button',
title: options.title || 'Print',
click: function () {
this.print()
}.bind(this),
parent: element
})
if (!options.target) {
ol_ext_element.create('BUTTON', {
type: 'button',
title: options.title || 'Print',
click: function () {
this.print()
}.bind(this),
parent: element
})
}
// Open in a new window

@@ -644,3 +646,3 @@ if (options.openWindow) {

i18n(what) {
var rep = this._labels.en[what] || 'bad param';
var rep = this._labels.en[what] || what;
if (this._labels[this._lang] && this._labels[this._lang][what]) {

@@ -647,0 +649,0 @@ rep = this._labels[this._lang][what]

@@ -704,3 +704,3 @@ /*

var attributions = []
if (caps.Attribution) {
if (caps.Attribution && caps.Attribution.Title) {
attributions.push('<a href="' + encodeURI(caps.Attribution.OnlineResource) + '">&copy; ' + caps.Attribution.Title.replace(/</g, '&lt;') + '</a>')

@@ -707,0 +707,0 @@ }

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

var dy = v[i][1] - dxy[1];
if (i == 0 || (dx !== 0 || dy !== 0)) {
// Prevent same coords
if (i == 0 || (dx !== 0 || dy !== 0) || v.length===2) {
p = this.encodeNumber(dx, 0) + ','

@@ -304,4 +305,5 @@ + this.encodeNumber(dy, 0)

}
if (found)
if (found) {
f.push(prop);
}
}

@@ -422,14 +424,2 @@ return f;

export default ol_format_GeoJSONX
export default ol_format_GeoJSONX

@@ -68,2 +68,10 @@ import ol_Collection from 'ol/Collection.js'

}
/**
* Remove the interaction from its current map and attach it to the new map.
* @param {ol_Map} map The map instance.
*/
setMap(map) {
super.setMap(map);
this.features = [];
}
/** Sources to cut feature from

@@ -70,0 +78,0 @@ * @param { ol.source.Vector | Array<ol.source.Vector> } sources

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

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

@@ -22,3 +22,3 @@ import {VERSION as ol_util_VERSION} from 'ol/util.js'

var anchor = img.getAnchor();
if (img.setDisplacement) {
if (anchor && img.setDisplacement) {
var disp = img.getDisplacement();

@@ -25,0 +25,0 @@ if (disp) {

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