Configuring Arcgis Server 10 and viewer for flex

3081
5
Jump to solution
05-07-2012 05:03 AM
OleksandrLeposhkin
New Contributor II
Hello everybody!

Can anyone tell me how can i join ims service and FLEX?
Or can you tell me where i can find detailed manual how to do it!

thanks!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Richard,
   If by join you mean to add an IMS Service in Flex Viewer then here is an example:

            <layer label="IMS" type="arcims" visible="false" alpha="1"                     servicehost="http://activefiremaps.fs.fed.us" servicename="CONUS_Fire" />


The main thing is that the IMS Server has to be 9.3 or greater to be able to work with a map using WKID 102100(3857)

Search for arcims on this page for documentation details.

http://help.arcgis.com/en/webapps/flexviewer/help/01m3/01m30000000p000000.htm

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
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Richard,
   If by join you mean to add an IMS Service in Flex Viewer then here is an example:

            <layer label="IMS" type="arcims" visible="false" alpha="1"                     servicehost="http://activefiremaps.fs.fed.us" servicename="CONUS_Fire" />


The main thing is that the IMS Server has to be 9.3 or greater to be able to work with a map using WKID 102100(3857)

Search for arcims on this page for documentation details.

http://help.arcgis.com/en/webapps/flexviewer/help/01m3/01m30000000p000000.htm

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
OleksandrLeposhkin
New Contributor II
Hi!

Thanks for the reply!)
I have ArcGIS Server 10.
I`ve created a test IMS Service - here is the path - http://ukrsces-ims3.sea.gov.ua:8399/flx/
When I try to add this IMS Service to FLEX Viewer - i got white screen.
In the flex viewer config.xml a have this code:
<map wraparound180="true" initialextent="-14083000 3139000 -10879000 5458000" fullextent="-20000000 -20000000 20000000 20000000" top="40">
        <basemaps>
     
        <layer label="IMS" type="arcims" visible="true" alpha="1"
         servicehost="http://ukrsces-ims3.sea.gov.ua:8399" servicename="flx"/>
  
        </basemaps>


what am i doing wrong?

Thanks!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Richard,

   There is no need to even consider ArcIMS as you have ArcGIS Server running on your server, so you should be using that.

<map wraparound180="true" initialextent="26.71452732086182 38.8095326728821 42.492992210388124 49.22331949996946" fullextent="26.71452732086182 40.514579963684085 42.492992210388124 47.51827220916748" top="40">
        <basemaps>
            <layer label="flx" type="dynamic" visible="true" alpha="1"  url="http://ukrsces-ims3.sea.gov.ua:8399/arcgis/rest/services/flx/MapServer"  />
        </basemaps>
0 Kudos
OleksandrLeposhkin
New Contributor II
Thanks! It works!)

And one more thing. If service uses 2 or more layers - how can i get them work? I suppose it must be a widget, that works like a TOC?

Thanks!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Richard,

   In the download of flex viewer there where a couple of config.xmls (i.e. config-all.xml, etc) theses show how you have multiple map services in the viewer. If you add a map service that has multiple layers in it or grouped layers those will show up in the otb MapSwitcher (the "More" button next to the base maps buttons). You can use the TOCWidget in the flex viewer as well if you download it from the code gallery.
0 Kudos