Select to view content in your preferred language

The street map does not show up

1184
4
Jump to solution
06-11-2012 04:55 AM
AlaeddineSaadaoui
Regular Contributor
Hi all,
I have add this following code to the xml configuration file:
    <map wraparound180="false" initialextent="331027 4106321 789365 4514733" fullextent="-20000000 -20000000 20000000 20000000"
         wkid="26917" top="40"
         scale="1700000">
        <basemaps>
    <layer label="Imagery" type="arcims" visible="true" alpha="1"  
        servicehost="http://mapwv.gov" servicename="WV_SAMB_Orthophotos_2003_UTM83" />
    <layer label="Streets" type="tiled" visible="false"
      icon="assets/images/basemap_streets.jpg"
                 url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
        </basemaps>

The first layer shows up when I click on Imagery button but the second one does not when I click on Streets button.
Thank you very much for your help.
Alaeddine Saadaoui.
Rahall Transportation Institute.
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Alaeddine,

   The only way I know that you can fix it is to change the Streets from tiled to dynamic (this of course will cause the layer to be slower as it will not be using the pre generated tile images).

<layer label="Streets" type="dynamic" visible="false"        icon="assets/images/basemap_streets.jpg" imageformat="jpg" dpi="120"                  url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Alaeddine,

   The map gets it's LODs (Levels of Display and Spatial Reference) from the first layer that is loaded. You are loading your arcims layer first and you are specifying the maps wkid as 26917. Cached (tiled) maps such as Street Map do not get reprojected on the fly by ArcGIS Server so there are going to be situations where you can not use then with wkids other than 102100. You can try to list the Streets layer first but it is likely that you ims layer would fail to work then.
0 Kudos
by Anonymous User
Not applicable
Original User: 3alaeddine

Hi rscheitlin,
You're right, I listed the street map first and the IMS layer failed to work. I am wondering if there is a way to fix this problem.
Thank you again for your help.
Alaeddine Saadaoui.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alaeddine,

   The only way I know that you can fix it is to change the Streets from tiled to dynamic (this of course will cause the layer to be slower as it will not be using the pre generated tile images).

<layer label="Streets" type="dynamic" visible="false"        icon="assets/images/basemap_streets.jpg" imageformat="jpg" dpi="120"                  url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:
0 Kudos
by Anonymous User
Not applicable
Original User: 3alaeddine

Your solution has worked.
Thank you so much for your help.
0 Kudos