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 7.9.0 to 8.1.0

19

index.js

@@ -59,3 +59,3 @@

if (me.markerOptions) {
me.setPosition(me.markerOptions.markerLatitude, me.markerOptions.markerLongitude)
me.setPosition(me.markerOptions.markerLatitude, me.markerOptions.markerLongitude);
}

@@ -113,2 +113,8 @@

DrawingManager.prototype.addMarker = function (latitude, longitude) {
const me = this;
me.setPosition(latitude, longitude);
me._bindMarker(false);
},
DrawingManager.prototype._fitBounds = function () {

@@ -400,2 +406,6 @@ const me = this;

let me = this;
let bounds = new google.maps.LatLngBounds();
me._area.getPath().getArray().forEach(function (element, index) { bounds.extend(element) });
let _center = bounds.getCenter();
let center = {};
let positions = [];

@@ -419,2 +429,6 @@ let position = [];

position = positions[0];
center = {
latitude: _center.lat(),
longitude: _center.lng(),
}

@@ -424,3 +438,4 @@ arrayArea = {

positions,
position
position,
center
}

@@ -427,0 +442,0 @@ return arrayArea;

2

package.json
{
"name": "@h21-map/google-drawing-manager",
"scope": "@h21-map",
"version": "7.9.0",
"version": "8.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