Resizing map in the Reports/Combined

Angelo2 years ago

Hi,

it seems to me that map screen's height is fixed, I can't find a way change the height, right?

Track-trace2 years ago

It doesnt help when you do not even reply you other topics.

Cristian2 years ago

Angelo, only if you have the possibility to modify the code and compile it again
see here
https://github.com/traccar/traccar-web/blob/master/modern/src/reports/common/useReportStyles.js#L10

David2 years ago

hi there,
had the same problem.
On (already installed) linux traccar server, just type (as root):

VALUE=70%
sed -i 's!\(containerMap:{flexBasis:"\)[[:digit:]][[:digit:]]%!\1'"$VALUE"'!g' /opt/traccar/modern/assets/index-*.js

systemctl restart traccar.service

Change VALUE to any number between 10 and 99 before and enjoy.

Angelo2 years ago

sorry, which topic i failed to reply?

Angelo2 years ago

This should work, but I'm running the docker image version of traccar, so rebuilding the app is not an option for now, the solution of @David below has the same approach but updating a installed version

Angelo2 years ago

@David, it works! since i run the docker image version, after running the sed, no need to restart

David10 months ago

on new version 6.3 path of index-*.js changed:

VALUE=70%
sed -i 's!\(containerMap:{flexBasis:"\)[[:digit:]][[:digit:]]%!\1'"$VALUE"'!g' /opt/traccar/web/assets/index-*.js