Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add a high-resolution custom marker on a static google map

I'm using Google static maps (documention here) to show shops' locations, and I'm using a custom marker instead of the default.

However, this marker image appears low-resolution on high-resolution mobiles like the iPhone 4.

How do I fix it?

like image 268
gpr Avatar asked Jan 11 '12 01:01

gpr


1 Answers

Set &markers=scale:2 in conjunction with a @2x marker icon image and the &scale=2 parameter.

I just answered this in a duplicate question here: https://stackoverflow.com/a/17130379/378638

like image 153
Hakan B. Avatar answered Nov 06 '22 08:11

Hakan B.