Select to view content in your preferred language

Swipe and Spotlight Widget For Flex Viewer 2.x

2148
17
02-09-2011 10:48 AM
RobertScheitlin__GISP
MVP Emeritus
All,

   I have migrated Tom Hill's Swipe and Spotlight tools to Flex 4 and Flex Viewer 2.x

http://www.arcgis.com/home/item.html?id=b9767b3f300142488c798953a94906fc

The swipe tool behaves similarly to the swipe tool in ArcMap.

1)  The swipe tool allows you to compare two layers side-by-side, by selectively masking the top-most of the two layers.
2)  The spotlight tool allows you to see through a circular "cut out" of one map layer onto any layers below.
Tags (2)
0 Kudos
17 Replies
lukashampl
Deactivated User
Hi,
SwipeSpotlight tool is very good, we would like to use it to work with historical orthophoto. When switching basemaps using MapSwitcher, basemap gets over the active layer and the SwipeSpotlight tool does not work. I added to the widget listen BASEMAP_SWITCH event,where the function does the same as function layerChanged(). Still it is not entirely correct, how to solve it professionally? I'm not a programmer and I apologize for my English (Google Translate).

Regards

Lukas
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Lukas,

   Are you trying to swipe multiple basemaps? The map switcher actually only allows ONE basemaps at a time to be displayed. Your best path is to have the historical aerials that you want to swipe as operational layers instead of basemaps.
0 Kudos
EricVenden
Frequent Contributor
I just downloaded and am testing the 2.5.0.2 version of this widget.  The drop-down list will not populate.
There are basemaps listed in the config.xml and I have the "usebasemaps" tag set to true. 

Any ideas?
Thanks
Eric V
Gurnee,IL
0 Kudos
EricVenden
Frequent Contributor
False alarm - user error....forgot to add the reference to the "new" SwipeSpotlight.xml in my main config.

Eric
I just downloaded and am testing the 2.5.0.2 version of this widget.  The drop-down list will not populate.
There are basemaps listed in the config.xml and I have the "usebasemaps" tag set to true. 

Any ideas?
Thanks
Eric V
Gurnee,IL
0 Kudos
omega_cancer
Frequent Contributor
It is nice to see these tools updated.
Thanks Robert. 🙂
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   There is an exciting new version of the widget available:

Version 3.6.1 - Feb 18, 2014
*  Added support for freezing the swipe or spotlight mask. What this means  is can let go of the mouse during a swipe or spotlight and the mask  will remain frozen on the screen until you click again or press the esc  button on the keyboard.
* Added the diagonalswipeenabled tag in the xml.
* Added the freezelayermask tag to the xml. This sets the checkbox on the Swipe widget GUI to true or false.
*  Added support for multiple layers added to the map using the same  label. This mean you can swipe or spotlight basemaps with reference  layers and operational layers that have the same label for multiple  layers.
* Redesigned the GUI to allow selecting the top and the  bottom layer for the swipe or spotlight operations. Setting the layer in  the top and bottom drop down lists will move that layer to the top or  the bottom of the map respectively.
* When the widget is opened the  order and visibility of all map layers are recorded and when the widget  is closed they are reset to this original order/visibility.
* Depreciated the askaboutturningonlayer tag as now layers are set to visible by default when chosen in the top or bottom layer.
0 Kudos
RavindraSingh
Frequent Contributor
I want to implement same swipe functionality using ArcGIS Runtime SDK Java 10.2.
Is is possible?
if Yes, then please suggest how can i achieve?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ravindra,

   I Can only assume yes, but not being a Java developer and this being a Flex forum I have no advice on how that would be done.
0 Kudos