Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust Geolocation colour and size #40

Open
ea-phanvan opened this issue Apr 8, 2021 · 6 comments
Open

Adjust Geolocation colour and size #40

ea-phanvan opened this issue Apr 8, 2021 · 6 comments

Comments

@ea-phanvan
Copy link

The symbol for the users location is too small:

grafik

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

grafik

@rldhont
Copy link
Contributor

rldhont commented Jun 9, 2021

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

@ygorigor
Copy link

ygorigor commented Jun 9, 2021

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

@Gustry
Copy link
Member

Gustry commented Jun 9, 2021

@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-phanvan
Copy link
Author

@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?

@ygorigor
Copy link

@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

@Gustry
Copy link
Member

Gustry commented Jun 10, 2021

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants