KML Overlay Path Using gx:physicalWidth Element Not Working

Started by random walk, January 22, 2015, 08:50:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

random walk

Hello,



I have been using OruxMaps for over a year now and it is truly an awesome app!  It is quickly replacing my Garmin Oregon for day-to-day mapping and track recording duties.  One of my favorite features is combining custom offline maps and KML track overlays so I can navigate my way around new areas.



That said, I was attempting to create custom KML line styles using the Google extensions gx:physicalWidth (and outerWidth and outerColor) to create highly visible and distinctive path appearances for different path types -- dirt roads, single track trails, etc.  However, it appears gx:physicalWidth is not supported in OruxMaps.



I am using OruxMaps v.6.0.5 on Android v4.4.4 (CyanogenMod v11-20140801-NIGHTLY-moto-MSM8960).



Here is the KML:


<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>Test Path 4-lin.kml</name>
<Style id="lineStyle">
<LineStyle>
<color>ff55ff55</color>
<gx:physicalWidth>8</gx:physicalWidth>
</LineStyle>
</Style>
<Placemark>
<name>Path</name>
<styleUrl>#lineStyle</styleUrl>
<LineString>
<tessellate>1</tessellate>
<coordinates>
-116.995786,32.883756,102 -116.995702,32.883996,102 -116.995552,32.884291,102 -116.995448,32.884428,102 -116.995214,32.8847,102
</coordinates>
</LineString>
</Placemark>
</Document>
</kml>


Here is how that appears in Google Earth (the units for gx:physicalWidth is meters):



https://lh5.googleusercontent.com/-bcWCiFnca34/VMFPQB6nEgI/AAAAAAAABdU/Ly_MdB51M0A/s640/Test%2520Path%25204-lin.jpg">



But this is how the overlay appears in OruxMaps:



https://lh6.googleusercontent.com/-g0bdl-tGt14/VMFPaJIMamI/AAAAAAAABdc/Sc-oYIkbVaY/s640/Screenshot_2015-01-22-11-26-57.jpg">



It appears the "gx:physicalWidth" element of LineStyle is ignored and the line defaults to 1.0 pixels wide which I believe is the default for the "width" element of LineStyle.



Note that if I use the "width" element instead of "gx:physicalWidth", the line renders correctly in OruxMaps (except in pixels vs. meters).



Thanks for your attention.