www.skylinesoft.com Homepage
Forum Home Forum Home > SkylineGlobe Enterprise Products > TerraExplorer for Developers
  New Posts New Posts RSS Feed - How to load a kml file
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to load a kml file

 Post Reply Post Reply
Author
Message
anshika View Drop Down
Visitor
Visitor


Joined: December 31 2009
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote anshika Quote  Post ReplyReply Direct Link To This Post Topic: How to load a kml file
    Posted: January 04 2010 at 8:51am

How can we create a layer which takes reference to a kml file using SGAPI? 

Back to Top
Eylon View Drop Down
Skyline Admin Group
Skyline Admin Group
Avatar

Joined: May 05 2003
Location: Israel
Status: Offline
Points: 259
Post Options Post Options   Thanks (0) Thanks(0)   Quote Eylon Quote  Post ReplyReply Direct Link To This Post Posted: January 10 2010 at 11:24am
Eylon
Back to Top
anshika View Drop Down
Visitor
Visitor


Joined: December 31 2009
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote anshika Quote  Post ReplyReply Direct Link To This Post 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??
 
 
Back to Top
anshika View Drop Down
Visitor
Visitor


Joined: December 31 2009
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote anshika Quote  Post ReplyReply Direct Link To This Post Posted: February 18 2010 at 3:58am
The problem is solved by adding .kml extension in MIME map in IIS.
Back to Top
Yaniv View Drop Down
Skyline Admin Group
Skyline Admin Group
Avatar

Joined: August 16 2007
Location: Israel
Status: Offline
Points: 87
Post Options Post Options   Thanks (0) Thanks(0)   Quote Yaniv Quote  Post ReplyReply Direct Link To This Post Posted: February 18 2010 at 8:12am

Thank you for updating us!

The MIME type for KML files is
  • application/vnd.google-earth.kml+xml

The MIME type for KMZ files is

  • application/vnd.google-earth.kmz
Back to Top
anshika View Drop Down
Visitor
Visitor


Joined: December 31 2009
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote anshika Quote  Post ReplyReply Direct Link To This Post 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.
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.516 seconds.