Select to view content in your preferred language

Is there a way to display a max extent for a Flex Viewer application?

4137
2
Jump to solution
02-03-2015 10:30 AM
ChristinaMcCullough
Regular Contributor

I would like to set a max extent for a Flex Viewer application.  I do not want the user to be able to pan on the map outside of an extent.

 

I have deleted the excess lod's.  Can this be set in the config.xml any other way?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor

Christina,

Unfortunately no not via the config. There was a blog on this years ago with the sample code if you have the ability to amend the source code:

Thunderhead Explorer: Constraining Map Extent

Constrained Map Extent in Flex

Lock/Constrain Extents Flexviewer 3.1

Restrict View Port Bounds in Flex Viewer 2.x

Regards

Anthony

View solution in original post

0 Kudos
2 Replies
AnthonyGiles
Honored Contributor

Christina,

Unfortunately no not via the config. There was a blog on this years ago with the sample code if you have the ability to amend the source code:

Thunderhead Explorer: Constraining Map Extent

Constrained Map Extent in Flex

Lock/Constrain Extents Flexviewer 3.1

Restrict View Port Bounds in Flex Viewer 2.x

Regards

Anthony

0 Kudos
ChristinaMcCullough
Regular Contributor

Thank you!  This is a very helpful start.

0 Kudos