earthoutreach / earth-api-utility-library

Automatically exported from code.google.com/p/earth-api-utility-library
0 stars 0 forks source link

Support to handle 'kml commands' (flyTo, balloon, balloonFlyTo) in hyperlinks #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Offer support for links that contain a Kml object ID and command, e.g.

<a href="http://something/foo.kml#pm1;balloonFlyTo">pm1</a>

<a href="#pm2;balloon">pm2</a>

Clicking links such as these in either kml balloons, or the hosting page, 
should perform the relevant action if a valid feature is referenced.

I made a fully working example of what I mean here: 
http://jsfiddle.net/fraser/8NHCU/

Simple used like so: gex.util.handleKmlCommands();

Thanks,

F

Original issue reported on code.google.com by fraser.c...@gmail.com on 3 Jan 2014 at 9:25