Select to view content in your preferred language

Map Services widget for 3.2? or 3.3?

1904
2
Jump to solution
05-20-2013 09:19 AM
KathrynSmith
Deactivated User
Does anyone have updated compiled code for the Map Services widget for version 3.2 or 3.3? I am interested in adding it to a viewer, but the code posted for v3.1 does not seem to work with my v3.2 viewer. I can select a layer from the list, but it just chugs and chugs and never adds the service to the map. I am assuming it is because of the incompatible versions, but of course not entirely certain since I'm a newbie at Flex. Thanks in advance for any help.

Here is link to Map Services widget:
http://www.arcgis.com/home/item.html?id=4ed10ea387444952a3f3f501fee02b76
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RhettZufelt
MVP Notable Contributor
This one works in 3.1 and 3.3.  have not tried it in 3.2.

I have modified it so the loadbottom tag is no longer valid.  Instead, there is a checkbox on the widget, you check the box if you want it to load to bottom of TOC.

Of course there are some issues.  Often, after you load it, it will not be visible until you un-check it and re-check the box.  If you set as visible in the config, you will have to check it again, so works "best" with visible="false".

R_

View solution in original post

0 Kudos
2 Replies
RhettZufelt
MVP Notable Contributor
This one works in 3.1 and 3.3.  have not tried it in 3.2.

I have modified it so the loadbottom tag is no longer valid.  Instead, there is a checkbox on the widget, you check the box if you want it to load to bottom of TOC.

Of course there are some issues.  Often, after you load it, it will not be visible until you un-check it and re-check the box.  If you set as visible in the config, you will have to check it again, so works "best" with visible="false".

R_
0 Kudos
KathrynSmith
Deactivated User
Thank you! I got the widget working on flex 3.1 on a test box. But I will upgrade my viewer to 3.3 and try your code. One other thing I was doing wrong was that I had set the type="tiled" rather than "image" in the .xml, which is why it was chugging but not loading the image services (D'OH!)
0 Kudos