Code Gallery
Extent/Pan Control with next and previous extent buttons
|
A pan control similar to the Google map's control with the addition of two buttons to step backwards and forwards through your navigation history. I developed this while working on a project called FIRSTâ„¢ http://first.camber.com/. I'm working on a better skin. Let me know if you have any other feature requests or suggestions.
View source is enabled on the demo but it looks like you have to right click on the toggle button bar in the top, right corner because the ESRI controls provide their own context menus.
|
|
Report Inappropriate Content: This Code Gallery is intended for the free exchange of code related to ESRI software products. Let us know if this entry is inappropriate (e.g., a download for a commercial product).

Very Cool posted by mrjrdnthms on May 13, 2009 9:40 AM
good job on this. I got it up and running in no time and it works like a charm. Thanks. Jordan www.loremphoto.com/jordan
Install posted by kgerhartz on May 15, 2009 2:24 PM
Can you provide explicit instructions on how to install to a newbie?
Install Instructions posted by tylerchesley on May 20, 2009 3:57 PM
I'd be happy to. After you download the code, you'll need to either put the bin/ESRI.swc in your libs folder of your project or put the source files in your src folder. Then to use the control you'll need to add it your application. You'll have to add the namespace xmlns:controls="org.tylerchesley.esri.ags.controls.*". Then you can add the control . It needs a reference to your map and that's about all. You can view the source of the sample application here http://blog.tylerchesley.org/examples/extentcontrol/srcview/index.html. If you want to position it like I have in the top left corner you will have to set the style of the Navigation control to something like this:
Navigation {
left: 25;
top: 70;
}
I'm actually thinking about extending the Navigation class to incorporate my control. Then you could do something like this: . Let me know if you have any other questions or suggestions.
Absolute beginner needs help! posted by Tapas on May 28, 2009 2:50 PM
Tyler, I love your new navigation control with the added forward/backward buttons. Can you show me how to replace the stock ESRI Sample FlexViewer navigation control with your improved version? This is what I have done so far: 1. Unzipped AS16261.zip Got the following 3 folders under ESRI bin libs src 2. Copied ESRI/bin to FlexViewer/libs/bin 3. Properties | Flex Build Path | Library path | Added SWC file ESRI.swc from libs/bin 4. Copied ESRI/src/assets to FlexViewer/src/assets 5. Copied ESRI/src/org to FlexViewer/src/org 6. Added xmlns:controls="org.tylerchesley.esri.ags.controls.*" to FlexViewer/src/index.html
Alert Moderator
Rest of my post: posted by Tapas on May 28, 2009 2:54 PM
Tyler, Here is the rest of my post: 7. Now my question is how do I add this control to replace the default navigation control? 8. Finally, how do I make this control point to my map? Using the Sample FlexViewer as an example, how would the relevant code look like? Please remember, I am an absolute beginner! Thanks, Tapas
RE: Absolute beginner needs help! posted by tylerchesley on Jun 01, 2009 12:53 PM
Hi Tapas, All you really need to do is add the ESRI.swc to your libs folder. You don't need to copy the assets or the source code folders. There isn't going to be an easy way to add this to the Flex Viewer application right now. I will work up an example for you tonight and post it for you.
very nice.... posted by romakahlon on Jun 17, 2009 11:10 AM
Thanks for the upload, I am going to added to our http://gis.stancounty.com site
RE: very nice.... posted by tylerchesley on Jun 17, 2009 5:47 PM
I'm glad you like it. Let me know if you have any suggestions or feature requests. Also let me know when you have it up on your site.
RE: very nice.... posted by romakahlon on Jun 22, 2009 3:33 PM
Its deployed in production now...... http://gis.stancounty.com
Using navigation within an image posted by owensri on Jul 16, 2009 8:00 AM
Only started using flex today and want to use your navigation controls on an image within a flex program. Any ideas on what i might need to do would be greatly appreciated....
Using navigation within an image posted by owensri on Jul 16, 2009 9:17 AM
Sorry i explained that badly. I just want to use a number of images rather a set of maps that you are using. Thanks
Adding the Navigation Control to Sample Flex Viewer. posted by stsunkara on Jul 27, 2009 8:01 AM
Hi Tyler, Even I want to add this Navigation Control to Sample Flex Viewer. Would really appreciate it if you have more details on this. Thanks in advance, Sree T. Sunkara
Here is a the instruction for adding to the Sample Viewer posted by rscheitlin on Aug 22, 2009 7:09 AM
All, /n here is a thread that has detailed instructions for adding to the Flex Sample Viewer. /n http://forums.esri.com/Thread.asp?c=158&f=2421&t=289352
Some improvement ideas... posted by j.joalland on Sep 15, 2009 8:04 AM
Hi, I just start to use Flex... and your Control is just great ! and thanks for clear explanation :-) Just 2 question (for Flex Viewer Sample use): - coult id be possible to change the color of the Extent/Pan Control ? (black by default from what i see) - i replace the "Navigation" part in my style.css, but now the Zoom tool does not use transparency... could it be possible to define transparency ? (as Banner, Widgets, etc.) Thanks anyway for this control Jeremie
If you would like to post a comment, please login.