Select to view content in your preferred language

Trouble Getting Basemap to Display(Beta>2.1)

1176
5
10-21-2010 07:15 AM
JoshuaCoates
Deactivated User
I have added my basemap xml as :
<map initialextent="1991769 1448332 2191422 1642143">
        <basemaps>
            <layer label="Basemap" type="tiled" visible="true" alpha="1"
                   url="http://publicgis/PublicGISserver/rest/services/Basemap/MapServer"/>
        </basemaps>

For some reason, when I run the app...nothing displays....just have a white screen? The MXD's are displaying in ArcMAP just fine?!

I am transferring a web app from beta to 2.1, but have basically started from scratch.

Any ideas?
Tags (2)
0 Kudos
5 Replies
philippschnetzer
Frequent Contributor
are you sure it's tiled?  try type="dynamic"
0 Kudos
JoshuaCoates
Deactivated User
It is tiled, but I figured it out. I am also getting an error #2035 when I click the layer widget icon that I added? Anyone know what this error means? I added the widget like this....
 <widget label="Layers" left="80" top="280"
                icon="assets/images/i_layers.png"
                config="widgets/Layers/LayerListWidget.xml"
                url="widgets/Layers/LayerListWidget.swf"/>
0 Kudos
JoshuaCoates
Deactivated User
It is tiled, but I figured it out. Thanks:)
0 Kudos
KeithHastings
Occasional Contributor
Hi Josh,

Am having the same issues you encountered with getting my own service to appear as a basemap.
Can you enlighten me as to what your fix was.
Thinking it is something to do with projections, but can seem to figure out what.

    <map initialextent="1571500 5180600 1576000 5184100" top="40" wkid="2913">
        <basemaps>
            <layer label="Pre-Quake Imagery" type="tiled" visible="true" alpha="1"
                  url="http://MyServer/ArcGIS/rest/services/CCC_PreQuake_Imagery/MapServer" />
        </basemaps>

Cheers
Keith
0 Kudos
DasaPaddock
Esri Regular Contributor
What do you get if you just use:

<map top="40">
<basemaps>
<layer label="Pre-Quake Imagery" type="dynamic" visible="true" alpha="1"
url="http://MyServer/ArcGIS/rest/services/CCC_PreQuake_Imagery/MapServer" />
</basemaps>

Is your Viewer also at http://MyServer/...
0 Kudos