Skip to content

Add support for scale parameter on custom icons to be able to use hi-DPI icons when map scale > 1#419

Merged
domesticmouse merged 2 commits intogooglemaps:masterfrom
smartpettech:master
May 15, 2018
Merged

Add support for scale parameter on custom icons to be able to use hi-DPI icons when map scale > 1#419
domesticmouse merged 2 commits intogooglemaps:masterfrom
smartpettech:master

Conversation

@astachelek
Copy link
Copy Markdown
Contributor

It appears that Google supports a scale parameter for custom marker icons although this is undocumented. See the Stack Overflow articles below. This is ultimately necessary when generating maps for hi-DPI screens where the overall map scale option is set to 2 or 4. I've tested with this locally and it appears to be working albeit it is undocumented by Google.

https://stackoverflow.com/questions/8813143/how-do-i-add-a-high-resolution-custom-marker-on-a-static-google-map

https://stackoverflow.com/questions/10336646/how-can-i-use-high-resolution-custom-markers-with-the-scale-parameter-in-google

@googlebot
Copy link
Copy Markdown

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

@astachelek
Copy link
Copy Markdown
Contributor Author

I signed it!

@googlebot
Copy link
Copy Markdown

CLAs look good, thanks!

@domesticmouse domesticmouse merged commit 4f74e97 into googlemaps:master May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants