How to add/change LODs in Operational Layer (added thru MapManager.js)?

670
3
Jump to solution
12-14-2020 09:00 AM
Labels (2)
BingJing
New Contributor III

Hi All

I added an aerial layer(see below code in MapManager), Now we want to only display aerial when zoom in to property level.  Is this achievable programmatically by applying LOD on Aerial Layer?  Or the basemap has to determine it?  I changed the basemap LODs in WebAppbuilder config but no luck.

Thank you in advance

....

//User Start, add aerial dynamic layer
var cAerial = new ArcGISDynamicMapServiceLayer(".....");
cAerial.isOperationalLayer = true;
map.addLayer(cAerial);
//User End

.....

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Bing,

  Just set minScale and maxScale properties on the layer, there is no need to mess with the maps LODs

0 Kudos
BingJing
New Contributor III

Hi Robert

Do you mean to add via my code? Thank you so much.

cAerail.maxScale = 0;

cAerial.minSacle=1000;

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Absolutely.

0 Kudos