Gmaps问题:巨大的图标呈现KML文件 [英] Gmaps issue: Huge icons rendering KML files
问题描述
今天,我已经呈现kml文件的每个网站都会显示巨大的点图标。我使用自定义的图标。
图标的分辨率为32x32,gmaps绘制的图标的尺寸大于300x300
这些网站一直工作良好多年,我什么也没有改变。
rel =nofollow> http://mirador.dipusevilla.es/这是一个今天正在上演的谷歌地图问题吗?
谢谢!
看起来像< ;在
元素已被打开。您的PNG文件非常小,但您在某些情况下指定了< IconStyle>
中,scale> 30
的比例(KML非常密集且不容易解析)。
过去可能会被忽略,它位于规范,图片按照< scale>
中指定的因子进行缩放。如果它是 1
你可能不会注意到。
Today every sites that I've rendering kml files appear with huge icons for points. I'm using customized icons.
The icon's resolution is 32x32 and the icon drawn by gmaps has a size bigger than 300x300
This sites has been working fine for years and I've changed nothing.
http://mirador.dipusevilla.es/
Is that a google maps issue that is comming up today?
Thanks!
Looks to me like the <scale>
element within <IconStyle>
has been switched on. Your PNG files are quite small, but you are specifying a scale of 30
in some cases (the KML is quite dense and not easy to parse).
While in the past that would probably have been ignored, it is in the specification that the image is scaled by the factor specified in <scale>
. Had it been 1
you probably wouldn't have noticed.
这篇关于Gmaps问题:巨大的图标呈现KML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!