How to set MapRotation in FLexViewer 3.1

651
3
01-15-2013 02:19 PM
YasnaiaFlorentino
New Contributor
Hi all,

I've downloaded the arcgis api  for flex 3.1 (uncompiled), and the arcgis viewer flex 3.1 (uncompiled).
And I'm working with Flash Builder 4.6.

I am trying to set map rotation on my source code for FlexViewer. How can I do that?
On my index.mxml I am getting errors.

Thank you
Tags (2)
0 Kudos
3 Replies
RhettZufelt
MVP Frequent Contributor
This setting can now be done in the main config.xml in the map tag:

 <map rotation="270" wraparound180="true" initialextent="-14083000 3139000 -10879000 5458000" fullextent="-20000000 -20000000 20000000 20000000" top="40" addarcgisbasemaps="true">


R_
0 Kudos
YasnaiaFlorentino
New Contributor
Thank you for the answer.
Changing the config.xml file <map rotation ="270"> tag  it really rotates the map, but what I am
really looking for is the rotation wheel where you can rotate the map and
reset for the original setting (North).

Thank you
0 Kudos
AnthonyGiles
Frequent Contributor
Yasnaia,

Have a look at this sample, I think it is what you are after:

http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Rotate_Map/01nq0000008s000000/

Regards

Anthony
0 Kudos