lizmap-javascript-scripts icon indicating copy to clipboard operation
lizmap-javascript-scripts copied to clipboard

Adjust Geolocation colour and size

Open ea-phanvan opened this issue 4 years ago • 6 comments

The symbol for the users location is too small:

grafik

Is it possible to adjust the size and the colour via additional javascript?

grafik

ea-phanvan avatar Apr 08 '21 12:04 ea-phanvan

The size is defined by the geolocation precision. Here, we are sure of the user position.

rldhont avatar Jun 09 '21 08:06 rldhont

@ea-refit symbol size and color can be changed only in source code assets/src/modules/Geolocation.js

ygorigor avatar Jun 09 '21 08:06 ygorigor

@ea-refit symbol size and color can be changed only in source code assets/src/modules/Geolocation.js

Or by custom CSS without changing LWC source code https://docs.lizmap.com/current/en/publish/customization/themes.html ? Better to not change LWC source code, or you need to do it again every update.

Gustry avatar Jun 09 '21 08:06 Gustry

@ea-refit symbol size and color can be changed only in source code assets/src/modules/Geolocation.js

Or by custom CSS without changing LWC source code https://docs.lizmap.com/current/en/publish/customization/themes.html ? Better to not change LWC source code, or you need to do it again every update.

Thank you for the hint! Unfortunately I'm not that familiar with CSS. How can I approach this exactly?

ea-phanvan avatar Jun 09 '21 08:06 ea-phanvan

@ea-refit symbol size and color can be changed only in source code assets/src/modules/Geolocation.js

Or by custom CSS without changing LWC source code https://docs.lizmap.com/current/en/publish/customization/themes.html ? Better to not change LWC source code, or you need to do it again every update.

symbol size and color is coded in js so I didn't find how they can be changed with CSS

ygorigor avatar Jun 10 '21 04:06 ygorigor

Ah ok, thanks for checking. So maybe https://docs.lizmap.com/current/en/publish/customization/javascript.html ? But I'm not a web developer so maybe I'm wrong :)

Gustry avatar Jun 10 '21 04:06 Gustry