Skip to content

An ArcGIS Viewer for Flex widget that allows adding content from ArcGIS.com or Portal for ArcGIS.

License

Notifications You must be signed in to change notification settings

lheberlie/portal-widget-flex

Repository files navigation

portal-widget-flex

This is the portal widget source code compatible with the arcgis-viewer-flex (ArcGIS Viewer for Flex) application.

Screenshot

This repository includes:

Features

  • This widget showcases the Portal for ArcGIS API and the ability to search for content on ArcGIS.com3 or on-premises (Portal for ArcGIS).
  • Using this widget, you can:
    • Search for public services on ArcGIS.com.
    • Sign in to ArcGIS.com and search for services that have been shared with you.
    • Search for public services hosted with Portal for ArcGIS.
    • Sign in to Portal for ArcGIS and search for services that have been shared with you.
    • Add these services to the ArcGIS Viewer for Flex.

Instructions

Instructions for Uploading to Application Builder

  1. Download the release for Application Builder.
  2. Open Application Builder, and go to Settings --> Advanced Settings
  3. Go to Manage Custom Widgets, click Add
  4. Navigate to the AppBuilderX.X-PortalWidget-X.X.X.zip file, and select the file.
  5. The Portal Widget should be added and available for use in the Application Builder.

Instructions to Upload to existing FlexViewer

  1. Unzip the AppBuilderX.X-PortalWidget-X.X.X.zip file
  2. Create the directory src/widgets/Portal
  3. Copy the contents of the zip file into the src/widgets/Portal folder
    • assets
    • meta.xml
    • PortalWidget.swf
    • PortalWidget.xml
  4. Change the PortalWidget.xml configuration parameters (listed below)
  5. Add a widget reference to the application config.xml file

Instructions to upload into source code

  1. Download the source from the tags or clone the repo (https://github.com/lheberlie/portal-widget-flex.git)
  2. Add the cloned or downloaded source code (e.g. /Users/Jack/Development/FlexViewer/portal-widget-flex/viewer-PortalWidget/src) to the Source path under the Flex Build Path in Adobe Flash Builder.
  3. Add the widget (PortalWidget.mxml) as a module to the Flex Modules in Adobe Flash Builder
  4. Modify the Flex Compiler settings with the Additional compiler arguments (see below)
    • -locale=en_US -source-path=locale/{locale},/Users/Jack/Development/FlexViewer/portal-widget-flex/locale/{locale} -keep-all-type-selectors=true
    • the section above in bold are the modifications that are necessary to localize the widget
    • You will need to create other locales other than English
  5. Change the PortalWidget.xml configuration parameters (listed below)
  6. Add a widget reference to the application config.xml file

PortalWidget.xml configuration parameters

  • -- can use either arcgis.com, or a Portal instance
  • -- the generateToken url, related to the used
  • -- how many results are returned per page search
  • -- the initial search when the widget opens
  • -- the initial sort used, available options are ('','title','created','owner','avgRatings','numViews')
  • -- 'desc','asc'
  • -- determines the size of the widget, 'full'=2 columns, otherwise 1 column

Requirements

  • Knowledge of Flex development.
  • A little background with Adobe®/Apache Flex® SDK.
  • Experience with the ArcGIS API for Flex would help.

Resources

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 2013 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 file.

About

An ArcGIS Viewer for Flex widget that allows adding content from ArcGIS.com or Portal for ArcGIS.

Resources

License

Stars

Watchers

Forks

Packages