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

googlemaps

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

googlemaps - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

2

lib/utils/parseMarkers.js

@@ -12,3 +12,3 @@ /**

var i, len, m = [], keys = ['size', 'color', 'label', 'icon', 'shadow'];
var i, len, m = [], keys = ['size', 'color', 'label', 'icon', 'shadow', 'scale'];

@@ -15,0 +15,0 @@ for (i = 0, len = keys.length; i < len; i++) {

{
"name": "googlemaps",
"version": "1.5.0",
"version": "1.6.0",
"main": "lib/index",

@@ -5,0 +5,0 @@ "description": "A simple way to query the Google Maps API from Node.js",

@@ -147,2 +147,14 @@ [![Build Status](https://travis-ci.org/moshen/node-googlemaps.svg?branch=master)](https://travis-ci.org/moshen/node-googlemaps)

For custom markers using the `icon` parameter, a little-known `scale` parameter is also available that makes it possible to use high-resolution custom images on devices with retina displays. Set it to 2 and use it together with a `@2x` *http-only* image URL (Google's API does not support custom marker images served over https), such as:
```
{
location: '999 Example Road, Earth',
icon: 'http://example.com/path/to/custom-marker@2x.png',
scale: 2
}
```
Credits to [this answer on SO](http://stackoverflow.com/questions/10336646/how-can-i-use-high-resolution-custom-markers-with-the-scale-parameter-in-google/17130379#17130379).
### Street view

@@ -149,0 +161,0 @@

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