Skip to content

L.esri.featureLayer's maxZoom/minZoom #1399

@shawnmgoulet

Description

@shawnmgoulet

Describe the bug

In this sample, a maxZoom and minZoom are set on a L.esri.featureLayer. The issue is that, after the initial zoom into and out of the maxZoom/minZoom range, the L.icons do not disappear and remain on the map.

Image

Reproduction

A repro Codepen is available here: https://codepen.io/shawnmgoulet/pen/xbKNwrM.

  1. Add Leaflet esri-leaflet via CDN
  2. Add a L.esri.featureLayer using a point feature service, with maxZoom and minZoom properties and a pointToLayer function that returns an L.marker using a L.icon to represent point features.
  3. Zoom to within the maxZoom and minZoom zoom levels, back out of the range, then back into the range and back out again. At this point, you will see L.icons still visible on the map.

Logs

System Info

Leaflet version: 1.9.4 | Esri Leaflet version: 3.0.13

Additional Information

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions