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

@h21-map/yandex-drawing-manager

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@h21-map/yandex-drawing-manager - npm Package Compare versions

Comparing version 4.0.6 to 5.0.1

23

index.js

@@ -501,2 +501,4 @@ function DrawingManager(map, opts) {

let positions = [];
let arrayArea = {};
let id = null;
if (!me.isMoreArea) {

@@ -510,12 +512,13 @@ for (var n = 0; n < coordinates.length; n++) {

positions.push(position);
id = 0;
}
let pos = {
positions
arrayArea = {
id: id,
positions,
}
return {arrayArea};
return pos;
} else {
me.polygonArea.forEach((key) => {
me.polygonArea.forEach((key, value) => {
let latLng = [];

@@ -531,2 +534,3 @@ for (var n = 0; n < key.geometry.getCoordinates().length; n++) {

latLng.push(lnlt);
id = value;
}

@@ -537,9 +541,8 @@ positions.push(latLng);

const pos = {
positions
arrayArea = {
id: id,
positions,
}
return pos;
return {arrayArea};
}
};

@@ -546,0 +549,0 @@

@@ -5,3 +5,3 @@

"scope": "@h21-map",
"version": "4.0.6",
"version": "5.0.1",
"description": "A library of Yandex Map JS API",

@@ -8,0 +8,0 @@ "main": "index.js",

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