hholzgra / maposmatic

Mirror of maposmatic repository at savannah.nongnu.org
GNU Affero General Public License v3.0
72 stars 13 forks source link

Size of overlays icons. #103

Open eelsaa opened 1 year ago

eelsaa commented 1 year ago

Hi ! Beautiful work !

The icons are too big when i try to print an overlay with surveillance cameras, or when i put my own *.gpx Is there a way to change the size ? thanks a lot, your work is awesome.

Example : image

Elsa

hholzgra commented 1 year ago

"Is there a way to change the size"

Not via configuration settings, only via the code. Either by replacing the bundled SVG images with smaller ones, or by reducing the scale factor in the code.

As far as I remember when implementing this I tried to have the icons display in a relative size similar to that used on the original surveillance-under-surveillance website ...

camerasmaposmatic commented 1 year ago

Hi, i want also to change the size of the overlays icons, but i don't find bundled SVG images nor where the scale factor is in code. Can you please direct us ?

Thanks for your amazing work !

hholzgra commented 1 year ago

The code is in the "ocitysmap" sister project where all the actual render code lives, the "maposmatic" project is 'just' the web fronted and the render daemon wrapper code.

The code actually drawing the symbols is:

https://github.com/hholzgra/ocitysmap/blob/master/ocitysmap/layoutlib/render_plugins/surveillance/__init__.py#L104

and the symbol SVG files are under

https://github.com/hholzgra/ocitysmap/tree/master/ocitysmap/layoutlib/render_plugins/surveillance/images