Select to view content in your preferred language

Dynamic layer projection between different spatial references

649
2
05-10-2011 12:48 AM
DavidChon
Emerging Contributor
Hello all,

I'm trying to do something like the example in the code gallery where you project an extent into the spatial reference of the base map (http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=CustomSR). What I'd like to do is to load up a map using a Tileserver in mercator and then project a WMS layer on it in WGS84. I figured that it would be similar to using the extent in the example, but I couldn't get it to work.

Specifically, I am loading up something as the base map:

        <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>

Then I want the following as a layer on top of the base map (many layers available for this ArcIMS dynamic layer):

         <esri:ArcIMSMapServiceLayer id="myArcIMS"
                                        load="myArcIMS.defaultVisibleLayers()"
                                        serviceHost="http://www.geographynetwork.com"
                                        serviceName="{gnServiceName.selectedItem}"/>       

I tried doing something similar to the example using an extent but that didn't seem to work (tried a small extent, then an extent of the whole world). I saw a thread via google that looked similar to this problem, but when I click on the link, it takes me to the home page of the new forums (guess the old links are dead).

Any advice or pointers in the right direction are appreciated! TIA.
Tags (2)
0 Kudos
2 Replies
BjornSvensson
Esri Regular Contributor
The "esri:Map" takes care of asking the additional servers for images in the appropriate spatial reference.  You do not have to project an extent or anything like in the CustomSR example, if all you want to do is put an ArcIMS/WMS service on top of a tiled Web Mercator map.

For example, this map puts a dynamic service (by default in geographic coordinates) and put it correctly on top of a Web Mercator base map:
http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=MapCombo
0 Kudos
DavidChon
Emerging Contributor
Thanks for the pointer. I'll give it a try and update the thread!
0 Kudos