简体   繁体   English

有没有办法以高分辨率创建用于视网膜显示的Google Maps KML图层?

[英]Is there a way to create Google Maps KML layer in high resolution for retina display?

So I try to use KML Layer with custom icons for my Google Maps V3 mobile webapp (using jQuery Mobile). 所以我尝试使用KML Layer和我的Google Maps V3移动webapp的自定义图标(使用jQuery Mobile)。 The base layer of the map is displayed correctly with sharp resolution and the zoom control is styled in compact mode automatically by the API, so I guess the API has detected the mobile device alright. 地图的基础层以清晰的分辨率正确显示,缩放控制由API自动设置为紧凑模式,所以我猜API已检测到移动设备正常。

However, the custom icons on the KmlLayer appear to be blurry, as a common symptom of displaying low-res marker image on high density mobile display (retina and such), despite the fact that I've already used the double-sized images. 然而,KmlLayer上的自定义图标看起来很模糊,这是在高密度移动显示器(视网膜等)上显示低分辨率标记图像的常见症状,尽管事实上我已经使用了双倍尺寸的图像。 I tried to adjust the <scale> tag in the kml file to no avail, since it seems to only affect the icons after being downsampled to 32*32 by Google's server. 我试图调整kml文件中的<scale>标签无济于事,因为它似乎只会影响谷歌服务器下采样到32 * 32 的图标。

So the question is: is there a way to request the Google KmlLayer server to serve high-res tile images? 所以问题是: 有没有办法要求Google KmlLayer服务器提供高分辨率平铺图像? I didn't see any such option in the documentation. 我在文档中没有看到任何这样的选项。 Maybe some trick on the KML generation side? 可能是KML生成方面的一些技巧?

Thank you in advance. 先感谢您。

UPDATE: as Chad stated below this is not currently supported. 更新:正如Chad所述,目前尚不支持。 So while I open my photoshop and design the new marker image so that it won't be so much ugly when blurred out, here's the link for the feature request on Google's page . 因此,当我打开我的photoshop并设计新的标记图像时,在模糊时它不会那么难看,这里是Google页面上功能请求的链接。

I am sorry I but I don't think it is available. 我很抱歉,但我不认为它可用。 All you can do is in your KML where you write 你所能做的只是在你写的KML中

  <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 high resolution icon. 确保使用高分辨率图标。 I hope it helps. 我希望它有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM