POI KML file location

jf 3 years ago

I want to add a marker for a location to my map, and can't seem to get it to work. As far as I know, I have to create a .kml file that contains the location and Name of the marker I want to set, then put that file on the server to host it and then enter the url (to the kml file) into the POI Layer in the Server Preferences. I have placed the file into /opt/traccar/mypoilayer.kml. Is the URL for that poi layer https://mydomain.com/mypoilayer.kml?
When I hit save and view nothing happens.
Content of KML file:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Placemark>
<name>Example Location</name>
<description></description>
<Point>
<coordinates>11.54862642288208,51.52809308014063,0</coordinates>
</Point>
</Placemark>
</kml>
Kaloyan Kanev 3 years ago

Traccar directory is not public folder.

Anton Tananaev 3 years ago

You have to put it next to the web app, in the modern subfolder.

jf 3 years ago

thanks you, this works Perfectly fine.