SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Google Earth KML
-
Jul 16, 2009, 04:15 #1
- Join Date
- Aug 2007
- Location
- South Africa
- Posts
- 72
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Google Earth KML
Hi All,
I was wondering if anyone can help me. If you look at this KML file, you'll see that the balloon popup has tabs. I really need to know how to do this, preferably without an iFrame. I've looked everywhere. Any ideas? Thanks.
Code XML:<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"> <Placemark id="agRtcGFzchULEg1Qcm90ZWN0ZWRBcmVhGNmHAgw_point"> <name>Table Mountain National Park</name> <styleUrl>http://mw2.google.com/mw-ocean/ocean/kml/mpa/en/0/root.kmz#pa_style_enhanced</styleUrl> <ExtendedData> <Data name="totalArea"> <value>953.24</value> </Data> <Data name="marineArea"> <value>953.24</value> </Data> <Data name="areaDescription"> </Data> <Data name="id"> <value>agRtcGFzchULEg1Qcm90ZWN0ZWRBcmVhGNmHAgw</value> </Data> <Data name="designationType"> <value>Marine Protected Area</value> </Data> <Data name="designationDate"> <value>2004-06-04</value> </Data> <Data name="protectionLevel"> <value>3</value> </Data> <Data name="xmlUrl"> <value>T_2.xml</value> </Data> <Data name="organization"> <value>Table Mountain National Park</value> </Data> <Data name="organizationUrls"> <value><![CDATA[Not yet known<br/>]]></value> </Data> <Data name="mpaSiteUrl"> <value>Not yet known</value> </Data> <Data name="noTake"> <value>Part of this MPA is no-take (fishing and removal of other resources is prohibited)</value> </Data> <Data name="regionLink"> <value><![CDATA[<a href='http://mpas.appspot.com/region?id=8'>West Africa</a>]]></value> </Data> <Data name="key"> <value>agRtcGFzchULEg1Qcm90ZWN0ZWRBcmVhGNmHAgw</value> </Data> <Data name="score"> <value>953</value> </Data> <Data name="ge4x_1"> <value><![CDATA["/><!--]]></value> </Data> <Data name="ge4x_2"> <value>--></value> </Data> <Data name="ge4x_3"> <value><![CDATA[<!--]]></value> </Data> <Data name="photos"> <value>[]</value> </Data> <Data name="videos"> <value>[["OW39fMVz7IM","National Geographic Remote Imaging - Crittercam","Great white sharks-eye view of a high speed hunting chase"]]</value> </Data> <Data name="stories"> <value>[["National Geographic filming animal behaviour in/near MPAs","http://mpas.appspot.com/pa?id=agRtcGFzchULEg1Qcm90ZWN0ZWRBcmVhGNmHAgw#agRtcGFzcg0LEgVTdG9yeRjy-QIM"]]</value> </Data> <Data name="addTabs"> <value>[["videosTab","Videos"],["storiesTab","Stories"],["factsTab","Facts"]]</value> </Data> </ExtendedData> <MultiGeometry> <Point> <coordinates>18.34,-34.29,0</coordinates> </Point> </MultiGeometry> </Placemark> </kml>
To recreate the KML, just copy the code and paste it into a text editor and save it as, lets say test.kml
Then double click it to open in Google Earth.
Hi,
I'm sorry about the double post, but I'm not getting any responses at the other one (maybe wrong section or the title might be a bit vague)
We figured that you can just link the javascript or something like that and we tried it, but we must be doing it wrong. It seems to work halfway, because if you click on the tabs, it actually stays selected.
http://dev.snowball.co.za/tabs/points.kml
http://dev.snowball.co.za/tabs/style.kml
If anyone can have a look at it, it would be much appreciated.Last edited by molona; Jul 18, 2009 at 03:13. Reason: Merging posts
-
Jul 18, 2009, 02:33 #2
- Join Date
- Feb 2009
- Location
- England, UK
- Posts
- 8,111
- Mentioned
- 0 Post(s)
- Tagged
- 1 Thread(s)
You may be asking the wrong people here, I certainly have not done any KML work with Google Earth however the best advice I can give is have you checked Google to see if someone else has come across the same problem (probably an obvious thing to ask)?
-
Jul 20, 2009, 06:11 #3
- Join Date
- Aug 2007
- Location
- South Africa
- Posts
- 72
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I've already spent a fair share on Google and Google Earth Outreach and Google Groups: KML Server Side Scripting.
Made a post there too... no luck yet, I reckon I might e-mail their developers and hope for the best :/
Bookmarks