cpesch / RouteConverter

The popular GPS conversion and editing tool
http://www.routeconverter.com
Other
141 stars 40 forks source link

[FEATURE REQUEST] different waypoint icons #89

Open Smig0l opened 1 month ago

Smig0l commented 1 month ago

Hi! i am editing a .kml file exported from GoogleEarth. i noticed that the icons that were like these: image

are defaulted to black circles: image

Is it possible to customize these icons like the one from GoogleEarth? Analyzing the kml file i see that a waypoint is composed like this:

        <Placemark>
            <name>Cerro al Lambro</name>
            <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
            <Point>
                <coordinates>9.341593100000001,45.33097180000001,0</coordinates>
            </Point>
        </Placemark>

So we can simply parse and read <styleUrl>#icon-1899-0288D1-nodesc</styleUrl> ?

Thanks!

cpesch commented 2 weeks ago

The styleUrl is already parsed

https://github.com/cpesch/RouteConverter/blob/cd34ccbdc43cd0071321ba10efdff2a1de710d94/navigation-formats/src/main/java/slash/navigation/kml/KmlFormat.java#L153

but to determine the route characteristics, i.e. where its a Track, Route, or Waypoint list.

What exactly do you propose? That the visual representation inside of RouteConverter matches that of Google Earth?