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

Larger Planes and Selection Indication #159

Open
royleith opened this issue Feb 21, 2021 · 0 comments
Open

Larger Planes and Selection Indication #159

royleith opened this issue Feb 21, 2021 · 0 comments

Comments

@royleith
Copy link

My local map is pretty busy and I have a problem finding the planes. The selected plane is also not very clear. I doubled the plane size and put a red circle around the selected plane with these modified lines of gmap.html.

/* Give a border to the selected plane. */
if (Selected == plane.hex) {
selhtml = 'border:4px dotted; width: 35px; height: 35px;background-clip: text; border-color: red; border-radius:50% 50% 50% 50%;';
} else {
selhtml = '';
}
he = '

✈️
';
var icon = L.divIcon({html: he, className: 'plane-icon'});
return icon;

Obviously, the font size can be more finely adjusted with pixel sizes (e.g. font-size:30px;) or percentages and the circle can be changed to suite by changing the width and height.

Github don't allow html files to be attached and so I have renamed it gmap.txt

gmap.txt

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

1 participant