Geovation / labelgun

🏷️ reducing label clutter across mapping libraries
https://geovation.github.io/labelgun/
113 stars 10 forks source link

Differentiate initial hide() from subsequent hide() #24

Closed tomchadwin closed 6 years ago

tomchadwin commented 7 years ago

I've added an opacity transition to the style, and this works well. However, this means all overlapping labels initially display on map load, immediately transitioning to fade out.

What would be the easiest way to differentiate calls to hideLabel() made initially from subsequent ones? The transition could then be removed for the subsequent calls.

JamesLMilner commented 7 years ago

Hey @tomchadwin , one way to fix this could you set the initial labels to hidden?

tomchadwin commented 7 years ago

Yes, that would of course be more sensible. However, I didn't think the Leaflet example explicitly did display them. I'll look through my code and see if I can tweak it. Thanks.

tomchadwin commented 6 years ago

Closing this for now, as the requirement was based on a misapplication of the lib.