Additional Maps - traccar-web Modern

Will_ed2 years ago

I've added in additional maps using map.js & mapstyles.js they are working as expected but I can't work out where the name is picked up for the selector list. They both show as undefined, can anyone point me in the right direction to set these?

Screenshot

Anton Tananaev2 years ago

Are you going to show the changes? Or do you want a guess?

Will_ed2 years ago

Hi Anton,

Apologies, I didn't know if there was something I've missed elsewhere changes below:

mapstylesjs
mapjs

Anton Tananaev2 years ago

Have you added your strings into JSON files with localization? That's what t(...) is for. If you don't need localization, you can just remove that function call.

Will_ed2 years ago

I understand now and have it working, thank you!

MT2 years ago

have you managed to get Bing maps in the modern version ? if so would you mind sharing the code changes pleaassssee : )

Chris2 years ago

Would like to get the Bing OS maps working in the new version

Anton Tananaev2 years ago

Please submit a request on GitHub with details on why that specific map is required and what alternatives you considered.