Language-Mapping / language-map

Front-end codebase for Language Mapping web map
https://languagemap.nyc
MIT License
7 stars 4 forks source link

Still possible to click/hover when points/labels hidden #244

Open abettermap opened 3 years ago

abettermap commented 3 years ago

image

the reason is that the layer is still technically visible, but the hack to make the "still be able to show labels w/o showing symbols" work means that both the symb and labels are all part of the same MB layer setup, so if visibility is turned off then it will turn it off for all the stuff (labels AND points).

maybe there's a way around it but the hack is just setting the point icon size to 0, yet somehow it's still clickable.

kind of a semi-edge case but it's really confusing for clicks especially, e.g. you think you click on a census poly and then you get taken to Details view.

abettermap commented 3 years ago

@rperlin-ela if i come up with an easy solution, i'll implement, but otherwise it seems pretty complex and i don't think i'll be able to get to it in this scope. hopefully it's livable!