Select to view content in your preferred language

Change Size of Overview Map Widget

1708
18
Jump to solution
12-28-2012 05:51 AM
MichaelVolz
Esteemed Contributor
Is it possible to change the size of the compiled overview map widget in the Flex Viewer application?
Tags (2)
0 Kudos
18 Replies
GISDev1
Deactivated User
Here's your requested widget. I created a version for both V3.0 and V3.1

Overview Map Custom Size :

http://www.arcgis.com/home/item.html?id=56bb06a6340f46aaa8b7d99c75b893e2
0 Kudos
MichaelVolz
Esteemed Contributor
Thank you very much GISDev01 for this useful enhancement.

Is there any chance you can add the uncompiled code to the page where the compiled code is located?
0 Kudos
GISDev1
Deactivated User
Thank you very much GISDev01 for this useful enhancement.

Is there any chance you can add the uncompiled code to the page where the compiled code is located?


I plan to add it to my github account soon. Same username on there.
0 Kudos
MichaelVolz
Esteemed Contributor
How would I access this location to download the uncompiled code?
0 Kudos
GISDev1
Deactivated User

Is there any chance you can add the uncompiled code to the page where the compiled code is located?


Here is the uncompiled code:
https://github.com/GISDev01/OverviewMapWidgetCustomSize

If you make further modifications, I just ask that you share the changes with everyone if possible.
0 Kudos
MichaelVolz
Esteemed Contributor
Thanks again for the uncompiled code.

I was reviewing the code and I do not understand how the .mxml file knows how to retrieve the data from the .xml file.

if (configXML)
                {
                    overviewMap.configXML = configXML;
                }

This seems like where the mxml file is trying to access the xml, but how does it know to look for OverviewMapWidget.xml if it is not explicitly passed in the variable configXML?
0 Kudos
GISDev1
Deactivated User
Thanks again for the uncompiled code.

I was reviewing the code and I do not understand how the .mxml file knows how to retrieve the data from the .xml file.

if (configXML)
                {
                    overviewMap.configXML = configXML;
                }

This seems like where the mxml file is trying to access the xml, but how does it know to look for OverviewMapWidget.xml if it is not explicitly passed in the variable configXML?


I actually used to wonder the same thing a while back.
That is part of Esri's Flex API. The joy of using good API's is they basically do the work for you. For each widget, it looks for a .xml that is designated in the config.xml. You pass the variables just using the identifier *.configXML
0 Kudos
MichaelVolz
Esteemed Contributor
Thanks for the explanation.

Do you know where I would find the original source code for the OverViewMap widget that is part of the out-of-the-box build?
0 Kudos
GISDev1
Deactivated User
Thanks for the explanation.

Do you know where I would find the original source code for the OverViewMap widget that is part of the out-of-the-box build?


Sure, right here:
https://github.com/Esri/arcgis-viewer-flex
0 Kudos