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

Increase marker transparency #35

Open
changbaishan opened this issue Aug 3, 2018 · 2 comments
Open

Increase marker transparency #35

changbaishan opened this issue Aug 3, 2018 · 2 comments

Comments

@changbaishan
Copy link

My user gives me a feedback that markers on the map block the city names on the map. They also like your markers, they are informative. Would it be possible to increase transparency of the marker and use heavy border to resolve this user issue?

Thanks
Yong Liu

@buche
Copy link
Owner

buche commented Aug 4, 2018

The markers are highly customizable, but you can write your own markers, too. Please read https://github.com/buche/leaflet-openweathermap#example-with-user-provided-markerpopup-functions-for-current-weather

The cities marker is just the default one, the wind rose marker is one I implemented as an example for my example website. Just use these two as a guideline for your own marker:

Define layer: https://github.com/buche/leaflet-openweathermap/blob/master/example/files/map.js#L266
Event listener for layer: https://github.com/buche/leaflet-openweathermap/blob/master/example/files/map.js#L269
Marker function: https://github.com/buche/leaflet-openweathermap/blob/master/example/file/map.js#L95
Drawing the marker: https://github.com/buche/leaflet-openweathermap/blob/master/example/files/map.js#L109

@changbaishan
Copy link
Author

changbaishan commented Aug 4, 2018 via email

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

2 participants