using kml files in poi layer

paul5 years ago

Hello all

I am trying to work out how to use a kml file added to my web folder, I am not sure I am getting the url adress right can anyone help.
the url pointing to my web folder would consit of my traccar adress with :8082/c:/program_files/traccar/web/test.kml is this right? as its not working lol.
thank you

Anton Tananaev5 years ago

It's not right. It should be just :8082/test.kml if you put file into the web folder.

paul5 years ago

Very strange it’s not working thank you for your reply

paul5 years ago

The kml file is definitely in the web folder but it is not applying it to the poi layer??

homa3 years ago

Hi! What kml-format I must use? I'm try a lot of configurations, but all of it doesn't work...

Anton Tananaev3 years ago

If you want some help, you should probably provide details on what you've tried and what errors you get.

homa3 years ago

My last file format is:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Placemark>
    <name>test_name</name>
    <description>test_description</description>
    <Point>
            <coordinates>50.0,40.0</coordinates>
    </Point>
  </Placemark>
</kml>

I use ITN Converter for create kml-file. I put test.kml to /opt/traccar/web. I can show kml in browser via http://traccar_ip:8082/test.kml, in POI layer setting I write http://traccar_ip:8082/test.kml

Anton Tananaev3 years ago

OK and have you checked for errors? Have you checked network requests to see if the file is loaded?

homa3 years ago

do you mean it?
Description text

Anton Tananaev3 years ago

Yes, so no errors?

homa3 years ago

only it:
Description text

Anton Tananaev3 years ago
homa3 years ago

This sample works. Thanks!