Hamilton County Shares Its Flex Viewer (The Ranting of a

advertisement
*
or
The Ranting of a Mad Flex Developer
Larry Stout
Larry.Stout@HamiltonCounty.in.gov
1. Carmel
2. Fishers
3. Noblesville
4. Westfield
5. Johnson County Iowa (Iowa City)
6. Lexington County South Carolina
(Lexington/Columbia)
7. Madison County Indiana (Anderson)
8. Lancaster County Nebraska (Lincoln)
9. Idaho National Laboratory
10. St. Charles County Missouri (St.
Charles)
11. Los Angeles County California
12. Pulaski County Arkansas (Little
Rock)
13. Seminole County Florida (Sanford)
14. Harford County Maryland (Bel Air)
15. Fulton County Ohio (Wauseon)
16. Massachusetts Water Resources
Authority (Boston Area)
*Compiled and Source
*ftp site (zip files with passwords)
*In County/Out of County
*Documentation
a. Configuration
b. Rebranding
c. Best Practices
d. Concepts
e. Change Log
*
*
Coordinate Widget
(<appdir>/widgets/Coordinate/CoordinateWidget.xml)
The Coordinate widget is a simple widget that enables x,y coordinate
values to appear in the Viewer UI, as the cursor moves to different
locations in the map display. The coordinate values change dynamically
as the cursor moves and are displayed underneath the map scalebar
(default configuration). The coordinate values are based on the spatial
reference of the first basemap loaded into the Viewer. This widget also
displays the scale of the map in absolute format (e.g. 1:9,600). This is
an Esri widget with minor enhancements.
The file is defined by a <configuration> tag that identifies it as a
configuration file for the Viewer. It has the following child tags:
<outputunit> - The measurement unit to display; supported values are:
geo (Geographic), dms (Degress, Minutes, Seconds), and mercator (Web
mercator). If any other value is used, the units will not be projected.
<numberformatter> - Determines the precision formatting of the
displayed
*
*
HTML Wrapper (index.html):
Flex applications must be started with an html wrapper file. This file
contains the title of the application that displays on the browser header and
on the browser tab (if you use a tabbed browser).
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
xml:lang="en">
<head>
Hamilton County Flex Viewer
<title>Hamilton
Viewer</title>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8"/>
<meta name="description" content="ESRI ArcGIS viewer
for Flex"/>
<meta name="keywords" content="ESRI, ArcGIS, Flex
Viewer"/>
<meta name="author" content="ESRI"/>
If you are working with the source code, you will need to make this change
in the index.template.html file instead. This file is located in the htmltemplate folder. (The html-template folder is not under the src folder.)
…
*
*
Best Practice for Target Browser Size
with the Hamilton County Flex Viewer
Larry Stout
July 26, 2011
Introduction
As GIS professionals, we tend to have large monitors, multiple
monitors, and very high screen resolutions. As I write this, I am
using a laptop with a 17” display plus a second monitor with a 24”
display. Both are set to a resolution of 1920 x 1200. If I could have
even larger monitors, I would.
When developing and/or configuring a web application it is
important to understand many of your users will have smaller
monitors and lower screen resolution than you do. It’s a good idea
and a best practice to set your target screen resolution and test
your application at that screen resolution.
…
*
*
Email Widget
Larry Stout
October 21, 2011
These are the concepts for adding an Email Widget to the Esri Flex
Viewer. These concepts are taken from my implementation with Version
2.2 of the Esri Flex Viewer, and the details may vary for other versions of
the Esri Flex Viewer.
This document assumes you are comfortable editing, debugging, and
compiling the source code of the Esri Flex Viewer.
I implemented this using my own Email Widget. The source code for this
widget is not in this document but is available separately.
The Email Widget itself is pretty trivial except for the feature that includes
parameters in the URL that will set the center of the map, the scale of the
map, and the layer visibilities of the map. There are two parts to this
feature:
…
 Building the URL parameters to append to the Flex Viewer URL in
the email
 Processing the URL parameters when the Flex Viewer is opened
*
*
*
*
*
*Enhancements (13)
*Bugs (7)
*Uniform Applications
*Good Will
*Advance the Art
*Bacon
*Hero Worship
*
*
*Hard to show
• Fixed
• Subtle
*VERY IMPORTANT!
*Credibility
*I hate bugs
*I love bacon
*
*
This is a great mapping tool!! Better than any
others I have used previously.
Thank you!
mindy habig
317.374.7054
mjlevo@aol.com
http://www.flickr.com/photos/63861396@N00/2207934188/
*
*
Cee Lo Green
Larry
Madonna
*
Hamilton County Flex Viewer
Anybody can
write code.
It’s the ideas
that are golden.
Download