google earth - "Driving directions:" in kml balloons, suppressing - Kml doc file does not say -


my project involves kml files show several sites have several placemarks. first placemark, off 1 side, shows balloon descriptive text forced load on start-up, subsequent placemarks in file identify specific features. have read documentation file: https://developers.google.com/kml/documentation/kmlreference#balloonstyle guess don't understand it.

the doc file says: "to prevent driving directions links appearing in balloon, include element content, or $[description] substitute basic feature ." alas, including text element in balloonstyle nothing. if description not included or in balloonsdozentyle, icon cannot selected (the cursor remains hand). if description there, "directions:" in balloon.

my kml file

http://www.pinacate.org/kmlfiles/hydrovolcanic.kml

shows dozen icons. intro balloon forced display gx:balloonvisibility , shows without "directions:" when closed , reopened using "hydrovolcanic" icon on left, has directions. sykes maar , cerro colorado maar cannot selected. selectable icons show "directions:" in balloon. cannot figure out how turn off.

problem solved:

i hope i'm better geologist coder. trial , error, found "directions:" suppressed putting following code in style definition , not in placemarks. in retrospect, makes sense.

i wrapped $[description] in "text" tags , in "balloonstyle tags, inside "style" tag e.g.

<style id="blahblah">     ...     <balloonstyle>         <text>$[description]</text>     </balloonstyle>     ... </style> 

see https://developers.google.com/kml/documentation/kmlreference?csw=1#balloonstyle more information.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -