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

Maps: use labels instead of tooltips #148

Open
timwis opened this issue Sep 26, 2017 · 0 comments
Open

Maps: use labels instead of tooltips #148

timwis opened this issue Sep 26, 2017 · 0 comments
Labels

Comments

@timwis
Copy link
Member

timwis commented Sep 26, 2017

A fellow in Leaflet's gitter showed me how he's used L.tooltip for labels:

2017-09-25-13_03_19-index html

Tooltip options:

{permanent: true}

And styles:

.leaflet-tooltip {
    background: none;
    box-shadow: none;
    border: none;
}
.leaflet-tooltip-left:before, .leaflet-tooltip-right:before {
    border: 0px;
}

And to prevent overlapping labels, we can use Geovation/labelgun. Woot!

@timwis timwis added the v2 label Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant