Nathan,You should never publish a map service inside another map service. Just not good practice...
Eric, Issue is resolved in new version 2.3.7.1, but is caused me to depreciate the TOC updating based on programmatic layer visibility changes (Not a big deal for most people).
override protected function measure():void { super.measure(); const tocItem:TocItem = TocItem(data); // Add space for the checkbox and gaps if (isNaN(explicitWidth) && !isNaN(measuredWidth)) { var w:Number = measuredWidth; if(tocItem) if(w < tocItem.tocMinWidth) w = tocItem.tocMinWidth - 20; if (_vbox && _vbox.numChildren > 0) w += _vbox.measuredWidth; measuredWidth = w; } if (!isNaN(measuredHeight)) { var h:Number = measuredHeight + 5; if(_vbox && _vbox.numChildren > 0) h += _vbox.getExplicitOrMeasuredHeight(); measuredHeight = h; } }
<viewer:WidgetTemplate id="wTemplate" height="300" skinClass="com.esri.viewer.skins.WidgetTemplateSkin" width="440">
override protected function measure():void { super.measure(); const tocItem:TocItem = TocItem(data); // Add space for the checkbox and gaps if (isNaN(explicitWidth) && !isNaN(measuredWidth)) { var w:Number = measuredWidth; if(tocItem) if(w < tocItem.tocMinWidth) w = tocItem.tocMinWidth - 20; if (_vbox && _vbox.numChildren > 0 && _vbox.measuredWidth > w) w = _vbox.measuredWidth; measuredWidth = w; } if (!isNaN(measuredHeight)) { var h:Number = measuredHeight + 5; if(_vbox && _vbox.numChildren > 0) h += _vbox.getExplicitOrMeasuredHeight(); measuredHeight = h; } }
Eric, By that you mean that you added several map service sublayer ids to the excludelayers element in the xml right?
<excludelayer mapservice="Basemap">0,6,7,8,9,10,11,12</excludelayer>
Eric, Thanks for the helpful info. I now have the issue resolved in version 2.3.8.3. Also in your case you can optimize the xml by limiting to one line:<excludelayer mapservice="Basemap">0,6,7,8,9,10,11,12</excludelayer>
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.