AnsweredAssumed Answered

Feature Layer minZoom/maxZoom not applying consistanly

Question asked by samdrummonddev on Jul 30, 2015
Latest reply on Jul 31, 2015 by JGravois-esristaff

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.

Outcomes