Add custom POI layer to map from a KML file

Turbovix6 years ago

Anton, where should I put the KML file?

Anton Tananaev6 years ago

Anywhere. You can provide a link to a third party hosted file, or you can upload it to "web" folder inside Traccar.

Turbovix6 years ago

Very good!
Thank you!

Piotr6 years ago

I try use kml file on demo server and this not working.
I send my kml file on my hosting and paste link into the traccar in my account like this:
http://mydomain/somecatalog/kmlfile.kml
Is this correct or no?

Anton Tananaev6 years ago

Yes, but your server needs to allow CORS.

Piotr6 years ago

Thanks Anton,
i will try add this in my server.

imarinkovic6 years ago

Hi friends! POI works great!, but I don't know if you have problems when changing the KML content, seems to keep cached...anyone else have this problem?

Anton Tananaev6 years ago

Traccar doesn't cache anything, but your browser might.

imarinkovic6 years ago

Thanks Anton, I'm checking all alternatives.!

gabrielcz6 years ago

Hi,
I donĀ“t get working...
This function allow to point to a kml file and the point on that kml will show on maps like a layer?
Im using bing maps, can I point to KML?

My kml file is: http://oficina.grupoesmeralda.com.ar:8082/GE.kml

Maybe I dont undestand something, but the link to kml file must goes on third fiel of the server serttings from traccar web?
PLEASE TAKE A LOOK AT SCREENSHOT: http://oficina.grupoesmeralda.com.ar:8082/traccar_kml.JPG

is there where must be setup?

sorry for my english.

Anton Tananaev6 years ago

It can be on a third party server or on Traccar server. For more information:

https://github.com/tananaev/traccar-web/pull/642

Chris4 years ago

Where do i store the kml file on a windows server and how should i point to it ? i.e c:\testmap.kml

Thanks

Anton Tananaev4 years ago

Chris, have you read the comments here? There's already an answer to your question.

Chris4 years ago

Thanks got it working with the path :/file.kml stored in the web folder

Does not want to show the symbols up from google maps just the names now ?