Tax Parcel Viewer and custom BaseMapLayers

2062
1
02-19-2013 05:45 PM
Labels (1)
JeffButurff
New Contributor
I am trying to customize the Tax Parcel Viewer app.  I have been able to plug in our parcel data, and the search works fine.  The problem I'm having is the basemap.  I want to replace one of the samples with our own map service.

My config.js file is shown below.  When using the imageryMap basemap, it works fine.  When using my own landbaseMap, the background never draws.  The search still works, and I can select a parcel in the results.  It will zoom to that parcel, and highlight the actual parcel, but no background data ever draws. 

I can add my landbaseMap service to ArcMap, and it draws fine. If I view it in teh MapServer?f=jsapi, it draws fine. 

Is there something special that needs to be done with BaseMapLayers?

Thanks!

Jeff


===== config.js =====

    BaseMapLayers:
         [
                   {
                       Key: "imageryMap",
                       ThumbnailSource: "images/imageryHybrid.png",
                       Name: "Imagery",
                       MapURL: "http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"
                   },
                   {
                       Key: "landbaseMap",
                       ThumbnailSource: "images/Parcel map.png",
                       Name: "Landbase",
                       MapURL: "http://192.168.0.169:6080/arcgis/rest/services/Landbase/MapServer"
                   }
      ],
0 Kudos
1 Reply
JohnNoyes
New Contributor II
What I found is that it won't draw unless the basemap is published as a Cached Service or Tiled Service.
I am having the same problem. We have published and cached one service and it works just find but if it is a dynamic service and not cached I cannot use it as a basemap.

Check out this link.
0 Kudos