Author Topic: [MANUAL] Convert an existing KML/KMZ for offline use  (Read 13443 times)

Offline hossini

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: [MANUAL] Convert an existing KML/KMZ for offline use
« Reply #15 on: October 13, 2011, 08:23:45 »
Hi, it works on google earth, but cannot load in google maps.
 It's a big file, about 15000 POI (all german Speedcams).

The File is like this:

Even if i cut ~14999 POI's and just leave one left in the file, it doesnt show the ICON in Locus given by the URL...

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<Folder>
<name></name>
<open>1</open>
<Placemark>
  <description><![CDATA[ ]]></description>
    <name>10 </name>
    <visibility>0</visibility>
    <styleUrl>root://styles#default</styleUrl>
    <Style>
      <IconStyle>
        <scale>0.6</scale>
        <Icon>
          <href>http://www.navifriends.com/nfpois/grafik/bitmapsovl/blitzer-10.gif</href>
        </Icon>
      </IconStyle>
        <LabelStyle>
          <scale>0.8</scale>
        </LabelStyle>
    </Style>
    <Point>
      <extrude>1</extrude>
      <altitudeMode>relativeToGround</altitudeMode>
      <coordinates>8.545950,49.318710,10</coordinates>
    </Point>
</Placemark>
</Folder>

<Folder>
<name>Blitzer-10</name>
<Placemark>
  <description><![CDATA[ ]]></description>
    <name>10-m </name>
    <visibility>0</visibility>
    <styleUrl>root://styles#default</styleUrl>
    <Style>
      <IconStyle>
        <scale>0.6</scale>
        <Icon>
          <href>http://www.navifriends.com/nfpois/grafik/bitmapsovl/blitzer-10-m.gif</href>
        </Icon>
      </IconStyle>
        <LabelStyle>
          <scale>0.8</scale>
        </LabelStyle>
    </Style>
    <Point>
      <extrude>1</extrude>
      <altitudeMode>relativeToGround</altitudeMode>
      <coordinates>6.749887,49.339665,10</coordinates>
    </Point>
</Placemark>

<Placemark> ........
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9914
  • Thanked: 51 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [MANUAL] Convert an existing KML/KMZ for offline use
« Reply #16 on: October 13, 2011, 08:47:10 »
I'm testing your file and problem is caused by
Code: [Select]
<styleUrl>root://styles#default</styleUrl> .. what's that?? Is this line valid? delete this line and import will work fine.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline hossini

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: [MANUAL] Convert an existing KML/KMZ for offline use
« Reply #17 on: October 13, 2011, 11:58:25 »
Hi,  THATS IT, now it works perfectly. Thanks very much.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9914
  • Thanked: 51 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [MANUAL] Convert an existing KML/KMZ for offline use
« Reply #18 on: October 13, 2011, 13:09:33 »
you're welcome. StyleUrl, defined here http://code.google.com/apis/kml/documen ... l#styleurl is weird in your case. Anyway Locus do not support external styleUrl paths, so even when path to file with styles will be valid, this will not work. So if you want to use some custom styles, put them into same file as data
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Ferretty

  • More than Newbie
  • *
  • Posts: 47
    • View Profile
Re: [MANUAL] Convert an existing KML/KMZ for offline use
« Reply #19 on: October 13, 2011, 13:54:20 »
Exactly. I just see I missed to mention that in my mini-tutorial. Just take one of my small KMZ files from the shared area of this forum to look at how to define them internally.
« Last Edit: January 01, 1970, 01:00:00 by Guest »