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 2.0.4 to 2.0.5

37

index.js

@@ -100,3 +100,3 @@ function DrawingManager(map, opts) {

var createCenterMarker = (e) => {
let isIconSelected = false;
me._removeArea();

@@ -141,2 +141,18 @@ me._removeCenterMarker();

me._centerMarker.events.add('click', (event) => {
if (!me.circle) {
me.map.events.fire('draw:marker_click', me._getPosition());
if (!isIconSelected) {
me._setIconMarker(me.markerOptions.iconUrlSelected);
isIconSelected = true;
}
if (event && event.stopPropagation) {
event.stopPropagation();
} else {
window.event.cancelBubble = true;
}
}
})

@@ -204,2 +220,3 @@ me.position = null;

me._setIconMarker(me.markerOptions.iconUrl);
me._centerMarkerAddEventListener();

@@ -307,5 +324,16 @@ me._createVertexMarker();

};
DrawingManager.prototype._setIconMarker = function (iconUrl) {
let me = this;
if (me._centerMarker) {
me._centerMarker.options.set({
iconImageHref: iconUrl,
iconImageSize: [24, 30],
iconImageOffset: [-10, -24],
});
}
}
DrawingManager.prototype._convertlatlngs = function () {

@@ -666,7 +694,2 @@

me._centerMarker.events.add('click', () => {
me.map.events.fire('draw:marker_click', me._getInfo());
})
};

@@ -673,0 +696,0 @@

2

package.json
{
"name": "@h21-map/yandex-drawing-manager",
"scope":"@h21-map",
"version": "2.0.4",
"version": "2.0.5",
"description": "A library of Yandex Map JS API",

@@ -6,0 +6,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