Rotate map

Gianfranco7537 years ago

Hi to all!
I want to know if there is a way to make the make start rotated some degrees on login?
My plan was to leave the map with the realtime positions of the vehicules in a TV screen (with a raspberry pi), without keyboard connected, the problem is that the city where I am fits better on landscape on the screen.
Any help would be appreciated.

PS: sorry my bad english, it's not my primary language.

Anton Tananaev7 years ago

You would need to modify the Map JavaScript class.

Gianfranco7537 years ago

I already tried changing the "/opt/traccar/web/app/view/map/BaseMap.js" file and the "/opt/traccar/web/simple/app.js" file, but my changes don't appear on the web.

Anton Tananaev7 years ago

Probably because you haven't compiled changes. Please use search for more info.

nbl12682 years ago

hi @Gianfranco753, conscious this is an old post but wondering if you got a working solution for this?
I'd like to do something very similar. I have the map centred and optimal zoom level, but would like the default view rotated approx 85 deg clockwise (or west at top rather than north). Any help appreciated.