Is there a way to create a high-resolution KML layer for Google Maps to display the retina?

So I'm trying to use KML Layer with custom icons for my Google Maps V3 mobile web application (using jQuery Mobile). The base layer of the map is displayed correctly with a clear resolution, and scaling control is automatically created by the API automatically, so I assume that the API detected the mobile device in order.

However, custom icons on KmlLayer appear blurry, which is a common symptom of displaying a low resolution marker image on a high density mobile display (retina, etc.), despite the fact that I already used a double image in size. I tried setting the tag <scale>in the kml file to no avail, since it seems to only affect the icons after they were reset to 32 * 32 by the Google server.

So the question is: is there a way to request a Google KmlLayer server to serve high resolution images? I have not seen such an option in the documentation. Maybe some kind of trick on the side of the KML generation?

Thanks in advance.

UPDATE: as indicated by Chad below, it is not currently supported. Therefore, while I open my photoshop and create a new marker image so that it is not so ugly when it was blurry, here is a link to the function request in the Google page .

+5
source share
1 answer

I'm sorry, but I don’t think it is available. All you can do is your KML, where you write

  <IconStyle id="mystyle">
  <Icon>
    <href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
    <scale>1.0</scale>
  </Icon>
</IconStyle>

Make sure you use the high resolution icon. Hope this helps.

0
source

All Articles