Skip to content

Commit

Permalink
3.1 final.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfranco committed Dec 13, 2012
1 parent b22fb80 commit 8913957
Show file tree
Hide file tree
Showing 533 changed files with 12,881 additions and 5,161 deletions.
9 changes: 5 additions & 4 deletions .actionScriptProperties
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<actionScriptProperties analytics="false" mainApplicationPath="index.mxml" projectUUID="034d1e94-f1a9-4d3b-a1f5-4df718f153ab" version="6">
<actionScriptProperties analytics="false" mainApplicationPath="index.mxml" projectUUID="034d1e94-f1a9-4d3b-a1f5-4df718f153ab" version="10">
<compiler additionalCompilerArguments="-locale en_US -source-path=locale/{locale} -keep-all-type-selectors=true" autoRSLOrdering="true" copyDependentFiles="true" fteInMXComponents="false" generateAccessible="true" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="false" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin-debug" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="false" verifyDigests="true" warn="true">
<compilerSourcePath/>
<libraryPath defaultLinkType="0">
<libraryPathEntry kind="4" path="">
<excludedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/core.swc" useDefaultLinkType="false"/>
</excludedEntries>
</libraryPathEntry>
<libraryPathEntry kind="1" linkType="1" path="libs"/>
Expand All @@ -16,17 +17,16 @@
<application path="index.mxml"/>
</applications>
<modules>
<module application="src/index.mxml" destPath="widgets/AttributeTable/AttributeTableWidget.swf" optimize="true" sourcePath="src/widgets/AttributeTable/AttributeTableWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/Bookmark/BookmarkWidget.swf" optimize="true" sourcePath="src/widgets/Bookmark/BookmarkWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/Coordinate/CoordinateWidget.swf" optimize="true" sourcePath="src/widgets/Coordinate/CoordinateWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/Chart/ChartWidget.swf" optimize="true" sourcePath="src/widgets/Chart/ChartWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/DataExtract/DataExtractWidget.swf" optimize="true" sourcePath="src/widgets/DataExtract/DataExtractWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/Draw/DrawWidget.swf" optimize="true" sourcePath="src/widgets/Draw/DrawWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/Edit/EditWidget.swf" optimize="true" sourcePath="src/widgets/Edit/EditWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/Geoprocessing/GeoprocessingWidget.swf" optimize="true" sourcePath="src/widgets/Geoprocessing/GeoprocessingWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/Geoprocessing/GeoprocessingWidget.swf" optimize="true" sourcePath="src/widgets/Geoprocessing/GeoprocessingWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/GeoRSS/GeoRSSWidget.swf" optimize="true" sourcePath="src/widgets/GeoRSS/GeoRSSWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/HeaderController/HeaderControllerWidget.swf" optimize="true" sourcePath="src/widgets/HeaderController/HeaderControllerWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/InfoTemplates/InfoPopupWidget.swf" optimize="true" sourcePath="src/widgets/InfoTemplates/InfoPopupWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/InfoTemplates/SimpleInfoWinWidget.swf" optimize="true" sourcePath="src/widgets/InfoTemplates/SimpleInfoWinWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/LayerList/LayerListWidget.swf" optimize="true" sourcePath="src/widgets/LayerList/LayerListWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/Locate/LocateWidget.swf" optimize="true" sourcePath="src/widgets/Locate/LocateWidget.mxml"/>
<module application="src/index.mxml" destPath="widgets/Legend/LegendWidget.swf" optimize="true" sourcePath="src/widgets/Legend/LegendWidget.mxml"/>
Expand All @@ -45,4 +45,5 @@
<module application="src/index.mxml" destPath="widgets/WidgetContainer/WidgetContainerWidget.swf" optimize="true" sourcePath="src/widgets/WidgetContainer/WidgetContainerWidget.mxml"/>
</modules>
<buildCSSFiles/>
<flashCatalyst validateFlashCatalystCompatibility="false"/>
</actionScriptProperties>
Empty file modified .flexProperties
100755 → 100644
Empty file.
Empty file modified .project
100755 → 100644
Empty file.
83 changes: 83 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# arcgis-viewer-flex

This is the source code for the ArcGIS Viewer for Flex (a.k.a Flex Viewer). Learn more about Flex Viewer at [ArcGIS Viewer for Flex resource center](http://links.esri.com/flexviewer).

[View live app here](http://resources.arcgis.com/en/help/flex-viewer/live/index.html)

[![Image of Flex Viewer app](https://raw.github.com/Esri/arcgis-viewer-flex/master/arcgis-viewer-flex.png "Example Flex Viewer app")](http://resources.arcgis.com/en/help/flex-viewer/live/index.html)


## Features
* Ready-to-deploy GIS web client mapping app for ArcGIS Server.
* A complete web mapping application, and application framework that allows for ease and efficiency toward building web-mapping applications based on ArcGIS API for Flex.
* Many basemaps to choose from: Streets, Satellite, Topography, Oceans, Grayscale...
* Widgets provide specific functionality, but their source code can also be used as samples for other apps
* Easily configurable to meet custom business needs and requirements - no programming skills required to deploy.
* Viewer functionality is defined by widgets - many core widgets are included.
* New functionality can be created with custom widgets developed using ArcGIS API for Flex.

## Instructions (Getting Started)

See http://links.esri.com/flexviewer-gettingstarted-developers for more details.

1. In Adobe Flash Builder 4.6, go to "File" -> "Import Flash Builder project..."
2. Keeping "File" option selected, click "Browse..." button.
3. Select flexviewer-3.1-src.zip downloaded in step 1, e.g. "C:\Documents and Settings\jack\My Documents\flexviewer-3.1-src.zip".
4. "Extract new project to:" textbox will be automatically set to location where the project source will reside, e.g. "C:\Documents and Settings\jack\Adobe Flash Builder 4.6\FlexViewer.
5. Click "Finish" button. Project will be created and displayed in the Package Explorer window of Adobe Flash Builder, e.g. in this case FlexViewer.
6. If prompted to upgrade the project (because it was created with a previous version of Flash Builder), click "OK"
7. If prompted to choose Flex SDK version, select "Flex 4.6.0" or higher
8. If needed, download API Library from http://links.esri.com/flex-api/latest-download.
9. Go to "Project" -> "Properties" -> "Flex Build Path".
10. Click "Add SWC" and navigate to the agslib-3.[*]-[YYYY-MM-DD].swc file.

Optionally:

1. Right click on this project (FlexViewer) -> Click "Properties" -> Click "Flex Build Path".
2. In the "Output folder" textbox at bottom, specify the location of your web server where your
Flex Viewer should be deployed, e.g. in case of IIS web server, C:\Inetpub\wwwroot\flexviewerdebug.
3. In "Output folder URL" text box, specify the URL that matches with your output folder specified in last step, e.g. http://localhost/flexviewerdebug/
4. Click OK
5. Rebuild the project.
6. Select the project. Now let's run it - there are multiple ways of doing this: one way is to click green triangle button on top, another way is click Ctrl-F11 and a third way is to click "Run" menu, then select "Run Index".
7. Browser will open and Flex Viewer application will be displayed.

## Requirements

* Knowledge of Flex development.
* A little background with Adobe/Apache Flex SDK.
* Experience with the [ArcGIS API for Flex](http://links.esri.com/flex) would help.

## Resources

* [ArcGIS Viewer for Flex Resource Center](http://links.esri.com/flexviewer)
* [ArcGIS API for Flex Resource Center](http://links.esri.com/flex)
* [Flex Viewer License agreement](http://www.apache.org/licenses/LICENSE-2.0.html)
* [Flex API License agreement](http://www.esri.com/legal/pdfs/mla_e204_e300/english.pdf)
* [ArcGIS Blog](http://blogs.esri.com/esri/arcgis/)
* [twitter@esri](http://twitter.com/esri)

## Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

## Contributing

Anyone and everyone is welcome to contribute.

## Licensing
Copyright 2012 Esri

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

A copy of the license is available in the repository's [license.txt]( https://raw.github.com/Esri/arcgis-viewer-flex/master/license.txt) file.
Binary file added arcgis-viewer-flex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 7 additions & 16 deletions html-template/index.template.html
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<title>${title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="requiresActiveX=true" />
<meta name="description" content="Esri ArcGIS viewer for Flex"/>
<meta name="keywords" content="Esri, ArcGIS, Flex Viewer"/>
<meta name="author" content="Esri"/>
Expand All @@ -27,32 +28,22 @@
<script type="text/javascript" src="history/history.js"></script>
<!${useBrowserHistory} END Browser History required section -->

<script type="text/javascript">
var isIElt9 = false;
</script>
<!--[if lt IE 9]>
<script type="text/javascript">
isIElt9 = true;
</script>
<![endif]-->
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
<!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. -->
// For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection.
var swfVersionStr = "${version_major}.${version_minor}.${version_revision}";
<!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
// To use express install, set to playerProductInstall.swf, otherwise the empty string.
var xiSwfUrlStr = "${expressInstallSwf}";
var flashvars = {};
var params = {};
params.quality = "high";
params.bgcolor = "${bgcolor}";
params.allowscriptaccess = "sameDomain";
params.allowfullscreen = "true";
var isAIR = navigator.userAgent.indexOf("AdobeAIR") != -1;
if (isAIR || isIElt9)
var wmode = swfobject.getQueryParamValue("wmode");
if (wmode)
{
// workaround for overlaying tool tips and other content when loaded into an AIR app
// workaround for cursor issue - https://bugs.adobe.com/jira/browse/SDK-26818
params.wmode = "opaque";
params.wmode = wmode;
}
var attributes = {};
attributes.id = "${application}";
Expand All @@ -63,7 +54,7 @@
"${width}", "${height}",
swfVersionStr, xiSwfUrlStr,
flashvars, params, attributes);
<!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
// JavaScript enabled so display the flashContent div in case it is not replaced with a swf object.
swfobject.createCSS("#flashContent", "display:block;text-align:left;");
</script>
</head>
Expand Down
Empty file modified html-template/playerProductInstall.swf
100755 → 100644
Empty file.
Empty file modified html-template/swfobject.js
100755 → 100644
Empty file.
Empty file modified libs/HowToDownloadSWC.txt
100755 → 100644
Empty file.
Loading

0 comments on commit 8913957

Please sign in to comment.