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

@impargo/react-here-maps

Package Overview
Dependencies
Maintainers
5
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@impargo/react-here-maps - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

24

dist/HEREMap.js

@@ -70,2 +70,16 @@ "use strict";

};
var zoomOnMarkersGroup = function (markersGroup, animate) {
if (animate === void 0) { animate = true; }
var DISTANCE_FACTOR = 0.1;
var BEARING_TOP_LEFT = 315;
var BEARING_BOTTOM_RIGHT = 135;
var boundingBox = markersGroup.getBoundingBox();
var topLeft = boundingBox.getTopLeft();
var bottomRight = boundingBox.getBottomRight();
var distance = topLeft.distance(bottomRight) * DISTANCE_FACTOR;
var viewBounds = H.geo.Rect.fromPoints(topLeft.walk(BEARING_TOP_LEFT, distance), bottomRight.walk(BEARING_BOTTOM_RIGHT, distance));
if (viewBounds) {
map.getViewModel().setLookAtData({ bounds: viewBounds }, animate);
}
};
var zoomOnMarkers = function (animate, group) {

@@ -78,6 +92,3 @@ if (animate === void 0) { animate = true; }

}
var viewBounds = markersGroupsRef.current[group].getBoundingBox();
if (viewBounds) {
map.getViewModel().setLookAtData({ bounds: viewBounds }, animate);
}
zoomOnMarkersGroup(markersGroupsRef.current[group], animate);
}

@@ -89,6 +100,3 @@ };

markersSet.map(function (m) { return markersGroupSet.addObject(m); });
var viewBounds = markersGroupSet.getBoundingBox();
if (viewBounds) {
map.getViewModel().setLookAtData({ bounds: viewBounds }, animate);
}
zoomOnMarkersGroup(markersGroupSet, animate);
};

@@ -95,0 +103,0 @@ var addToMarkerGroup = function (marker, group) {

{
"name": "@impargo/react-here-maps",
"version": "2.3.0",
"version": "2.4.0",
"description": "React.js HERE Maps component",

@@ -5,0 +5,0 @@ "main": "dist/main.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