KML 气球造型
我阅读了几种改变谷歌地图上气球中显示内容的方法。我正在从 KML 文件上传。我想摆脱气球底部的方向/搜索附近的链接。我尝试了下面 KML 的一些变体,但它似乎对气球没有影响。
<Style id='removal'>
<BalloonStyle>
<text>$[description]></text>
</BalloonStyle>
</Style>
<Placemark>
<name>elephant</name>
<description>These are two elephants, one big and one small
</description>
<styleUrl>#removal</styleUrl>
<Point>
<coordinates>-121.985621 , 37.220577</coordinates>
</Point>
</Placemark>
I read several ways to alter what appears in the balloons on google maps. I am uploading from a KML file. I want to get rid of the directions/Search nearby links on the bottom of the balloon. I have tried some variations of the KML below but it seems to have no effect on the balloon.
<Style id='removal'>
<BalloonStyle>
<text>$[description]></text>
</BalloonStyle>
</Style>
<Placemark>
<name>elephant</name>
<description>These are two elephants, one big and one small
</description>
<styleUrl>#removal</styleUrl>
<Point>
<coordinates>-121.985621 , 37.220577</coordinates>
</Point>
</Placemark>
看到这个问题的年龄,我认为这已经以某种方式解决了,但因为它仍然存在:我很确定如果您将 KML 直接上传到地图,但如果您从自己的页面创建叠加层,则没有这样的选项使用此处所述的 JavaScript,气球中不会包含“搜索附近”链接。
Seeing the age of this question, I assume this has been resolve somehow, but since it's still out there: I'm pretty sure there is no such option if you upload KML directly to Maps, but if you create an overlay from your own page with JavaScript like described here, the balloons will not have the Search Nearby links in them.