googlemaps
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53520
199