lizmap-javascript-scripts
lizmap-javascript-scripts copied to clipboard
Adjust Geolocation colour and size
The symbol for the users location is too small:

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

The size is defined by the geolocation precision. Here, we are sure of the user position.
@ea-refit symbol size and color can be changed only in source code assets/src/modules/Geolocation.js
@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.
@ea-refit symbol size and color can be changed only in source code
assets/src/modules/Geolocation.jsOr 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-refit symbol size and color can be changed only in source code
assets/src/modules/Geolocation.jsOr 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
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 :)