hholzgra / maposmatic

Mirror of maposmatic repository at savannah.nongnu.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Size of overlays icons.

eelsaa opened this issue · comments

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

"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 ...

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 !

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