Skip to main content
title as statement
Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

Show/hide feature text depending on zoom in OpenLayers 7?

edited tags; edited title
Link
TomazicM
  • 27k
  • 23
  • 31
  • 42

Show/hide feature text depending on zoom in OpenLayers 7?

removed thanks
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

If the user zooms above level 10, labels show up. However, when the user zooms out below level 10, the labels still show until the map is moved one more time. I'm trying to force the map to re-render but it's not working. Is there a better event to use to trigger this, or a maybe a better strategy for showing/hiding labels? Thanks.

If the user zooms above level 10, labels show up. However, when the user zooms out below level 10, the labels still show until the map is moved one more time. I'm trying to force the map to re-render but it's not working. Is there a better event to use to trigger this, or a maybe a better strategy for showing/hiding labels? Thanks.

If the user zooms above level 10, labels show up. However, when the user zooms out below level 10, the labels still show until the map is moved one more time. I'm trying to force the map to re-render but it's not working. Is there a better event to use to trigger this, or a maybe a better strategy for showing/hiding labels?

Source Link
Loading