Can I change the map icon to a png?

darreno9 years ago

Anton,

First of all, wow, this is an amazing product and service that you have provided. I commend you. I have browsed the many source files in order to find out where I may be able to learn how to change the map icon and I am amazed at how much work you have put into this.
I could not believe how many files make up this server.
Just the protocol decoding alone must have taken you years.

I really commend you, thank you for making it and thank you for taking all of these questions in support of it.

Could you point me to the file where I might be able to add or change the map icon?

Thanks sir

Anton Tananaev9 years ago

Here is the file you are looking for:

https://github.com/tananaev/traccar/blob/master/web/app/view/MapController.js

Instead of "ol.style.Arrow", you can use "ol.style.Icon" for images.