www.skylinesoft.com Homepage
Forum Home Forum Home > SkylineGlobe General Support > Using SkylineGlobe API
  New Posts New Posts RSS Feed: How to load a kml file
  FAQ FAQ  Forum Search   Calendar   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
Online Status: Offline
Posts: 7
Post Options Post Options   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
Online Status: Offline
Posts: 216
Post Options Post Options   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
Online Status: Offline
Posts: 7
Post Options Post Options   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
Online Status: Offline
Posts: 7
Post Options Post Options   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
Online Status: Offline
Posts: 65
Post Options Post Options   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
Online Status: Offline
Posts: 7
Post Options Post Options   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

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.156 seconds.