Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

North Arrow placement (constraint value) not being recognized

$
0
0
Hello,

I am trying to insert a north arrow into my Flex Viewer. I have used the north arrow before in an mxml web application and everything ran smoothly. I am following the instructions in the ReadMe file, although in this case for the FlexViewer it is not exactly the same.

The ReadMe file states to insert code above the line:

'SiteContainer.dispatchEvent(new AppEvent(AppEvent.MAP_LOADED, false, false, map));' in MapManager.mxml

However, in my MapManager.mxml code (using 4.6 sdk and FlexViewer 3.3) this code did not exist exactly as above. I found:

'AppEvent.dispatch(AppEvent.MAP_LOADED, map);' in the configLoadHandler function. I assumed this was the correct spot and inserted the code from the ReadMe file above this line.

The north arrow shows up on the map with all the properties correct as inserted into the code in MapManager EXCEPT for the placement. I have
Code:

        northArrow.setConstraintValue("bottom", 65);
        northArrow.setConstraintValue("left", 15);

but instead of showing up there it is being placed in the top left corner of the map container. I tried setting different constraint values, but the north arrow doesn't move.

Any ideas? I'm lost on this one. Thank you!

David

Viewing all articles
Browse latest Browse all 2097

Trending Articles