Map API

Nutiteq Maps Lib SDK enables developing advanced mobile mapping applications.
Platforms: Android, RIM BlackBerry, Java ME (J2ME)
Download maps API SDK »
Untitled Document

Products

» View demos
» Downloads

Uudised

Viimane: Thu, 15 Mar 2012 14:51:08
Teema: Vabad töökohad pakkuda
Veel uudiseid »

Use a local file KML

8 replies [Last post]
mveggia
User offline. Last seen 2 years 34 weeks ago. Offline
Joined: 06/10/2009

In the tutorial I can add the KML service from a external file KML specifying the URL. Is there a way to read a local file kml offline?

Thanks!

Matteo

jaak
User offline. Last seen 4 days 19 hours ago. Offline
Joined: 06/19/2008

Yes, you can. Copy the file to "res" of your application and use:

mapComponent.addKmlService(new KmlUrlReader("/File.kml?",false));

/JaakL

mveggia
User offline. Last seen 2 years 34 weeks ago. Offline
Joined: 06/10/2009

It does not work. I've a file called "ProvaKMLNut.kml" in the res directory and I use

KmlUrlReader myKmlUrlReader = new KmlUrlReader("/ProvaKMLNut.kml?", false);
mapItem.addKmlService(myKmlUrlReader);

What is wrong?

jaak
User offline. Last seen 4 days 19 hours ago. Offline
Joined: 06/19/2008

What do you see in application log? Maybe there is something with the specific KML file?

/JaakL

mveggia
User offline. Last seen 2 years 34 weeks ago. Offline
Joined: 06/10/2009

I see no errors...

jaak
User offline. Last seen 4 days 19 hours ago. Offline
Joined: 06/19/2008

Can you give the KML file for review; send it to support@nutiteq.com

/JaakL

mveggia
User offline. Last seen 2 years 34 weeks ago. Offline
Joined: 06/10/2009

Any news?

mveggia
User offline. Last seen 2 years 34 weeks ago. Offline
Joined: 06/10/2009

I solve the problem by upgrade the library version from 0.10 to the newest 1.0.0.
Thanks for all!