开发者

KML balloon styling

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 K开发者_JAVA技巧ML 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>


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜