Feature Layer minZoom/maxZoom not applying consistanly

3453
1
07-30-2015 06:59 PM
Labels (1)
SamDrummond2
New Contributor III

I have developed an application using the Esri leaflet plugin. I have several layers in the map - one of which is a feature layer. This was added to the map using the following snippet and for the most part works well:

 

var options = {

    pointToLayer: lang.hitch(this, this._busStopsPointToLayer),

    maxZoom:18,

    minZoom:15,

    where:exp

};

 

var featureLayer = new L.esri.featureLayer(url, options);

this.map.addLayer(featureLayer);

 

However, sporadically when testing the application I can get some of the features appearing outside of the specified minZoom and maxZoom parameters, see the screen shot below. This is a subset of the bus stops that appear along the route and they should not appear at this scale.

 

 

Has anyone seen this before or have ideas about how to fix it.

0 Kudos
1 Reply
JohnGravois
Frequent Contributor

i have not seen this.

what version of esri-leaflet are you using?

0 Kudos