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 20.1.0 to 21.1.0

21

index.js

@@ -34,2 +34,3 @@ let drawModeMarker = "marker";

me.squareArea = opts.areaOptions.areaMaxSquare || 1400;
me._isEnableEvent = false;

@@ -40,3 +41,3 @@ };

DrawingManager.prototype.onAdd = function () {
let me = this;
const me = this;
google.maps.event.addListener(me.map, 'click', function (event) {

@@ -55,3 +56,3 @@ google.maps.event.trigger(me, 'click', event);

me._enableDraw = opts.enableDraw;
me._isEnableEvent = opts.isEnableEvent;
me._isRedrawEvent = opts.isRedrawEvent;

@@ -98,2 +99,3 @@ me.markerOptions && me.setPosition(me.markerOptions.markerLatitude, me.markerOptions.markerLongitude);

me.map.setOptions({ clickableIcons: false });
me._isRedrawEvent = false;
},

@@ -105,2 +107,3 @@

me._remove();
me._isRedrawEvent = false;
},

@@ -164,4 +167,3 @@

if (!me._circle) { return; }
me.map.setZoom(11);
me.map.setCenter(me._centerMarker.getPosition());
me.map.fitBounds(me._circle.getBounds());
},

@@ -519,3 +521,3 @@

if (!enabledCircle) { google.maps.event.trigger(me, 'draw:marker_create', me._getPosition()); }
if (me._isEnableEvent && !enabledCircle) { me.enableDraw = true; }
if (me._isRedrawEvent && !enabledCircle) { me._enableDraw = true; }

@@ -596,3 +598,3 @@ google.maps.event.addListener(me._centerMarker, 'click', () => {

google.maps.event.trigger(me, 'draw:circle_create', this._getInfo());
if (me._isEnableEvent) { me.enableDraw = true; }
if (me._isRedrawEvent) { me._enableDraw = true; }

@@ -813,3 +815,3 @@ }

DrawingManager.prototype._vertexMarkerCopyAddEventListener = function () {
let me = this;
const me = this;
const _vertMarkerCopy = me._vertexMarkerCopy.addListener('mouseover', () => {

@@ -829,4 +831,4 @@ if (me._vertexMarkerCopy) {

DrawingManager.prototype.getXYbyEvent = function (event) {
let me = this;
let client = me.getProjection().fromLatLngToContainerPixel(event.latLng);
const me = this;
const client = me.getProjection().fromLatLngToContainerPixel(event.latLng);
return {

@@ -949,2 +951,3 @@ clientX: client.x,

isDraw: me._enableDraw,
bounds: me._circle.getBounds(),
radius: Math.floor(me._circle.getRadius()),

@@ -951,0 +954,0 @@ position

{
"name": "@h21-map/google-drawing-manager",
"scope": "@h21-map",
"version": "20.1.0",
"version": "21.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