This object is in archive! 

Hi, i have Locus Pro in Android tablet, and use Kml for points

Rob Nav shared this question 7 years ago
Answered

The question is? it's possible use local icon in the definition of kml?


Example:


====================================

<Placemark>

<name>PUEBMA *5E Teul ID:MX_zs-fak1235</name>

<description><![CDATA[

rnoTipo:PUEBMA<br>rnoLigas:<br><a href="https://www.google.com.mx/maps/place/21%C2%B027'50.7%22N+103%C2%B027'43.4%22W/@21.4640962,-103.4626055,159m/data=!3m2!1e3!4b1!4m5!3m4!1s0x0:0x0!8m2!3d21.464095!4d-103.462057">http://www.google.com.mx</a><br><a href="http://www.pueblosmexico.com.mx/pueblo_mexico_ficha.php?id_rubrique=530">http://www.pueblosmexico.com.mx</a>; ]]></description>

<open>1</open>

<styleUrl>#icon-503-DB4436</styleUrl>

<Point>

<coordinates>-103.4626055,21.4640962,0</coordinates>

</Point>

</Placemark>


<Style id='icon-503-DB4436-normal'>

<IconStyle>

<color>ff3644DB</color>

<scale>1.1</scale>

<Icon>

<href>http://maps.google.com/mapfiles/kml/pal3/icon28.png</href>;

</Icon>

<hotSpot x='16' y='31' xunits='pixels' yunits='insetPixels'>

</hotSpot>

</IconStyle>

<LabelStyle>

<scale>0.0</scale>

</LabelStyle>

</Style>

<Style id='icon-503-DB4436-highlight'>

<IconStyle>

<color>ff3644DB</color>

<scale>1.1</scale>

<Icon>

<href>http://www.gstatic.com/mapspro/images/stock/503-wht-blank_maps.png</href>;

</Icon>

<hotSpot x='16' y='31' xunits='pixels' yunits='insetPixels'>

</hotSpot>

</IconStyle>

<LabelStyle>

<scale>1.1</scale>

</LabelStyle>

</Style>

<StyleMap id='icon-503-DB4436'>

<Pair>

<key>normal</key>

<styleUrl>#icon-503-DB4436-normal</styleUrl>

</Pair>

<Pair>

<key>highlight</key>

<styleUrl>#icon-503-DB4436-highlight</styleUrl>

</Pair>

</StyleMap>

===================

Can i change the href to local icon pack?


<Icon>

<href>http://maps.google.com/mapfiles/kml/pal3/icon28.png</href>;

</Icon>

Replies (5)

photo
1

Good day Rob,

by "local icon" you mean icon stored as PNG image directly in your device? It should be possible and working. Best for such cases is placing icons directly into KMZ file together with relative path to these icons.

I think you may try to create in Locus a point and then export it to KML file together with enabled "Include icons and attachments" in export screen. This will create file that may serve as sample to see how it should look like.

Hope this helps, otherwise feel free to ask.

photo
1

Thanks Menion, i'll try

photo
1

Good day i follow the exported data and now it's ok.


One more question, in the kml file i have various folders, i'ts possible in the import process group the points in their respective folder?

photo
1

Good day Rob,

glad to hear it works fine for You now.


About separating items into folders > same idea was already requested here: http://help.locusmap.eu/topic/create-folders-using-of-kml-while-importing . I still think, that it is not a good idea, also quite risky.

photo
1

Thanks Menion, ok maybe in the future.


Personally i use 10 categories grouped in folders, so i split de categories and manually imported in their respective group folder, it's more quick if the "Folder" especification can be used to directly create the folders.

Replies have been locked on this page!