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

@h21-map/google-drawing-manager

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 41.1.0 to 45.1.0

11

index.js

@@ -667,9 +667,10 @@ let drawModeMarker = "marker";

me._vertexMarker.setCursor('col-resize');
me._vertexMarkerAddEventListener();
me._centerMarker && me._vertexMarkerAddEventListener();
},
DrawingManager.prototype._vertexMarkerAddEventListener = function () {
let me = this;
const me = this;
me.isMaxDistance = false;
google.maps.event.addListener(me._vertexMarker, 'drag', (event) => {
if (!me._centerMarker) { return; }
const distance = me.getDistanceTo(me._centerMarker.getPosition(), event.latLng);

@@ -920,6 +921,6 @@ if (distance >= me.circleOptions.maxRadius) {

DrawingManager.prototype._getInfo = function () {
let me = this;
const me = this;
const position = {
latitude: me._centerMarker.getPosition().lat(),
longitude: me._centerMarker.getPosition().lng()
latitude: me._centerMarker && me._centerMarker.getPosition().lat() || me._circle.getCenter.lat(),
longitude: me._centerMarker && me._centerMarker.getPosition().lng() || me._circle.getCenter.lng()
}

@@ -926,0 +927,0 @@ const info = {

{
"name": "@h21-map/google-drawing-manager",
"scope": "@h21-map",
"version": "41.1.0",
"version": "45.1.0",
"description": "A library of Google 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