using kml files in poi layer

paul 6 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 Tananaev 6 years ago

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

paul 6 years ago

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

paul 6 years ago

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

homa 4 years ago

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

Anton Tananaev 4 years ago

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

homa 4 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 Tananaev 4 years ago

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

homa 4 years ago

do you mean it?
Description text

Anton Tananaev 4 years ago

Yes, so no errors?

homa 4 years ago

only it:
Description text

Anton Tananaev 4 years ago
homa 4 years ago

This sample works. Thanks!