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

Long labels in popups #563

Open
jteresco opened this issue Dec 18, 2020 · 0 comments
Open

Long labels in popups #563

jteresco opened this issue Dec 18, 2020 · 0 comments
Labels
bug Leaflet Issues related to Leaflet maps Low priority

Comments

@jteresco
Copy link
Contributor

Leaflet popups are sometimes not wide enough to accommodate long labels, mostly in HDX:

TravelMapping/EduTools#176

Potential changes here:

Web/lib/tmjsfuncs.js

Lines 1133 to 1137 in 570f8ab

function markerInfo(i, wpt) {
return '<p style="line-height:160%;"><span style="font-size:24pt;color:black;">' + wpt.label + '</span><br><b>Waypoint ' + i + '<\/b><br><b><a target="_blank" href="http://www.openstreetmap.org/?lat='+wpt.lat+'&lon='+wpt.lon+'">Coords.:<\a><\/b> ' + wpt.lat + '&deg;, ' + wpt.lon + '&deg;<\/p><div id="intersections' + i + '"><\/div>';
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Leaflet Issues related to Leaflet maps Low priority
Projects
None yet
Development

No branches or pull requests

1 participant