gpt4 book ai didi

google-maps - Google map 和 KML 能否支持大于 32x32 的图标?

转载 作者:行者123 更新时间:2023-12-02 20:46:49 25 4
gpt4 key购买 nike

我有一个 kml 文件,想要使用 Google Maps API(版本 2)显示。

我想使用大于 32x32 的图标。但当我尝试此操作时,API 似乎正在将图标大小调整为该大小。这可以使用 kml 来完成吗?

如果无法使用 kml - 那么最好的方法是什么?

我的 KML 点:

<Style id="stylemcneil">
<IconStyle>
<Icon>
<href>http://www.energyjustice.net/map/images/smokestack2-small.gif</href>
</Icon>
</IconStyle>
</Style>

<Placemark>
<name>McNeil Biomass Incinerator</name>
<description></description>
<styleUrl>#stylemcneil</styleUrl>
<Point>
<coordinates>-73.208326,44.493526,0.000000</coordinates>
</Point>
</Placemark>

最佳答案

geoxml3 的“kmz”版本使用图标的原始大小(我相信您也可以从那里进行缩放)。

Example

使用 native 谷歌地图 API v3 对象渲染 kml,因此不会获得基于图 block 的渲染的性能改进(因此,如果您有很多要显示的点,这不是一个好的解决方案)。

关于google-maps - Google map 和 KML 能否支持大于 32x32 的图标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11269116/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com