Show pageOld revisionsBacklinksAdd to bookExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== How to create generated icons ==== \\ ---- GPX Viewer supports generating custom color and text icons for waypoints defined in gpx or kml files. In gpx files you can define in <wpt> tag <extensions> tag, then <gpxwpx:WaypointExtension> tag into which you need to add <gpxwpx:icon> tag. These tags are not included in the gpx schema, so we are providing schema for this on this url: https://www.vecturagames.com/xmlschemas/GpxWaypointExtensionv1.xsd. Example: <wpt> ... <extensions> <gpxwpx:WaypointExtension> <gpxwpx:icon>...</gpxwpx:icon> </gpxwpx:WaypointExtension> </extensions> ... </wpt> Inside <gpxwpx:icon> and </gpxwpx:icon> tags instead of ... you can write functions: * **color_marker(color)** - instead of color you need to write the color in RGB format, for example #aab51c * **text_marker(string)** - instead of string you need to write a maximum of three characters and a minimum one character, for example 100 Example for **color_marker(color)**: <wpt> ... <extensions> <gpxwpx:WaypointExtension> <gpxwpx:icon>color_marker(#aab51c)</gpxwpx:icon> </gpxwpx:WaypointExtension> </extensions> ... </wpt> Result icon: [[https://docs.vecturagames.com/gpxviewer/lib/exe/fetch.php?cache=&media=docs:faq:how_to:icon_marker.png|{{ docs:faq:how_to:icon_marker.png }}]] Example for **text_marker(string)**: <wpt> ... <extensions> <gpxwpx:WaypointExtension> <gpxwpx:icon>text_marker(100)</gpxwpx:icon> </gpxwpx:WaypointExtension> </extensions> ... </wpt> Result icon: [[https://docs.vecturagames.com/gpxviewer/lib/exe/fetch.php?cache=&media=docs:faq:how_to:text_marker.png|{{ docs:faq:how_to:text_marker.png }}]] docs/faq/how_to/generated_waypoint_icon.txt Last modified: 2023/03/20 14:58by lucia.kubickova