![]() |
How to load a kml file |
Post Reply
|
| Author | |
anshika
Visitor
Joined: December 31 2009 Online Status: Offline Posts: 7 |
Post Options
Quote Reply
Topic: How to load a kml filePosted: January 04 2010 at 8:51am |
|
How can we create a layer which takes reference to a kml file using SGAPI? |
|
![]() |
|
Eylon
Skyline Admin Group
Joined: May 05 2003 Location: Israel Online Status: Offline Posts: 216 |
Post Options
Quote Reply
Posted: January 10 2010 at 11:24am |
|
Eylon
|
|
![]() |
|
anshika
Visitor
Joined: December 31 2009 Online Status: Offline Posts: 7 |
Post Options
Quote Reply
Posted: February 15 2010 at 10:03am |
|
I am able to load kml layer by giving path of local system as,
globe.teCore.IInformationTree.LoadFlyLayer ("C:/Inetpub/wwwroot/abc.kml");
But if i give the path as http://www.abc.com/abc.kml it is not working.
even IInformationTree51.LoadFlyLayer ("http://www.XXX.com/1.kml"); does not work
It gives error as - undefined or null object.
How to solve this??
|
|
![]() |
|
anshika
Visitor
Joined: December 31 2009 Online Status: Offline Posts: 7 |
Post Options
Quote Reply
Posted: February 18 2010 at 3:58am |
|
The problem is solved by adding .kml extension in MIME map in IIS.
|
|
![]() |
|
Yaniv
Skyline Admin Group
Joined: August 16 2007 Location: Israel Online Status: Offline Posts: 65 |
Post Options
Quote Reply
Posted: February 18 2010 at 8:12am |
|
Thank you for updating us! The MIME type for KML files is
The MIME type for KMZ files is
|
|
![]() |
|
anshika
Visitor
Joined: December 31 2009 Online Status: Offline Posts: 7 |
Post Options
Quote Reply
Posted: March 02 2010 at 11:11am |
|
layer=globe.teCore.IInformationTree.LoadFlyLayer ("C:/Inetpub/wwwroot/abc.kml");
globe.appendChild(layer);
This loads a kml layer on the globe.
how to unload this layer??
globe.removeChild(layer) doesnot work.
|
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |