Magnify Widget?

2607
5
Jump to solution
06-28-2013 06:07 PM
TimHayes
Occasional Contributor III
I have a Flex 3.0 Map Viewer using the ESRI Imagery (not Bing) as the Basemap Layers. For Operational Layers I have pipelines. The problem is that my users want to be able to zoom close into each pump station to see the piping for these that we have in the pipelines layer. However, the ESRI Imagery Basemap restricts how close you can zoom in to a level where they cannot get close enough.

In ArcGIS Desktop 10.1 there is a Magnify Tool you can use sort of like a magnifying glass to pan over your data shown in ArcMap. Does such a tool exist for Flex?

It would be great if my users could use such a tool to pan over a pump station and see what the piping and valve layouts are.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Frequent Contributor
Timothy,

If you have the ability to change the source code You can quite easily turn the overmap into a magnifier by changing the code from:

overviewMap.extent = map.extent.expand(3);

To:

overviewMap.extent = map.extent.expand(-3);

In the OverviewMapComponent.mxml:

https://github.com/Esri/arcgis-viewer-flex/blob/develop/src/widgets/OverviewMap/OverviewMapComponent...

Regards

Anthony

View solution in original post

0 Kudos
5 Replies
AnthonyGiles
Frequent Contributor
Timothy,

If you have the ability to change the source code You can quite easily turn the overmap into a magnifier by changing the code from:

overviewMap.extent = map.extent.expand(3);

To:

overviewMap.extent = map.extent.expand(-3);

In the OverviewMapComponent.mxml:

https://github.com/Esri/arcgis-viewer-flex/blob/develop/src/widgets/OverviewMap/OverviewMapComponent...

Regards

Anthony
0 Kudos
TimHayes
Occasional Contributor III
Timothy,

If you have the ability to change the source code You can quite easily turn the overmap into a magnifier by changing the code from:

overviewMap.extent = map.extent.expand(3);

To:

overviewMap.extent = map.extent.expand(-3);

In the OverviewMapComponent.mxml:

https://github.com/Esri/arcgis-viewer-flex/blob/develop/src/widgets/OverviewMap/OverviewMapComponent...

Regards

Anthony



Thanks for the response.

Questions:

1) What software do I need to be able to change the source code?

2) If I make this change to the overview map will it work like this: I zoom into a specific location at the zoom limit set by ESRI Basemaps, look at the overview map and I will an even greater zoom level for said specific location?
0 Kudos
AnthonyGiles
Frequent Contributor
Timothy

Questions:

1) What software do I need to be able to change the source code?

Adobe flash builder, you can download a 60 day trial here:

http://www.adobe.com/support/flex/downloads_updaters.html#flex4_6_trial

Have a look at the help for developers here:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Getting_started_for_developers/...


2) If I make this change to the overview map will it work like this: I zoom into a specific location at the zoom limit set by ESRI Basemaps, look at the overview map and I will an even greater zoom level for said specific location?

Correct,

Regards

Anthony
0 Kudos
DilsonKitoko
New Contributor III

Hello Anthony,

I know that the post is too old, but I'm trying to set the same function in Flex Viewer 3.6.

I was able to edit the source code, but when I change to the "-3) value, I only get blank screen in the overview map or the "Map data not yet available".

If I change back to any other positive value, it's work, but If I try any negative value, just got screens mentioned above@. Any ideia of what could be wrong?

Thanks in advance,

Dilson

0 Kudos
AnthonyGiles
Frequent Contributor

Dilson,

You are probably zooming in on the base-map to a scale that has not been cached.

regards

Anthony