AnsweredAssumed Answered

basemaps & NLiu's TOC

Question asked by David_Bily on Dec 9, 2014
Latest reply on Dec 10, 2014 by kenbuja

I am trying to implement NLiu’s TOC widget.  Basically, what I have done is created two custom base maps that I add to the basemapgallery.  One of the basemaps is a Zoning map for our county and the other is an aerial photo.  I then add a dynamic map service for the parcels.  The parcels float on top of the photo or Zoning depending on the state of basemaptoggle.  The parcels show up in the Table of Contents but Zoning does not.  How do I get the Zoning map to show up in the TOC?  It will display in the TOC if I add it as a tiled map service but not as a basemap.  Here’s my code.  The TOC is at the bottom.  In its current state, it will place the parcels in the TOC.  If I un-comment the Zoning piece in layerinfos, the arcels don’t display in the TOC and I get an error message in the console stating “Uncaught ReferenceError:  Zoning is not defined.”  What do I have to do to get it to recognize the Zoning basemap?