All Projects → Esri → geoform-template-js

Esri / geoform-template-js

Licence: Apache-2.0 license
GeoForm is a configurable template for form based data editing of a Feature Service.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to geoform-template-js

Viewer
Viewer is a configurable application template that enables you to display an ArcGIS web map using a variety of tools.
Stars: ✭ 56 (-15.15%)
Mutual labels:  arcgis-online, web-application, arcgis-api, configurable-apps
public-information-map-template-js
An ArcGIS Online mapping template to showcase social media on a map for disaster response and public information.
Stars: ✭ 66 (+0%)
Mutual labels:  arcgis-online, web-application, arcgis-api, configurable-apps
time-aware-template
Time Aware is a configurable application template that enables you to display time enabled layers in an ArcGIS web map using a time slider.
Stars: ✭ 20 (-69.7%)
Mutual labels:  arcgis-online, web-application, configurable-apps
awesome-arcgis
La mayor recopilación (Wiki) de recursos sobre ArcGIS que encontrarás (organizado por productos, conceptos, ...)
Stars: ✭ 21 (-68.18%)
Mutual labels:  arcgis-online, arcgis-api
portalpy
A module that allows you to administer Portal for ArcGIS and ArcGIS Online.
Stars: ✭ 50 (-24.24%)
Mutual labels:  arcgis-online
Webanno
The Official WebAnno Repository
Stars: ✭ 220 (+233.33%)
Mutual labels:  web-application
Omnidb
Web tool for database management
Stars: ✭ 2,709 (+4004.55%)
Mutual labels:  web-application
requests-arcgis-auth
Authentication handler for using Esri ArcGIS for Server and Portal (ArcGIS Online) Token Authentication with Python Requests
Stars: ✭ 21 (-68.18%)
Mutual labels:  arcgis-online
Berserker
A list of useful payloads for Web Application Security and Pentest/CTF
Stars: ✭ 212 (+221.21%)
Mutual labels:  web-application
portal-admin-examples
Example python scripts for working with the ArcGIS REST API.
Stars: ✭ 17 (-74.24%)
Mutual labels:  arcgis-online
System Design Primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
Stars: ✭ 154,659 (+234231.82%)
Mutual labels:  web-application
Three Layer
3️⃣ 🍰 Architecture of the Haskell web applications
Stars: ✭ 246 (+272.73%)
Mutual labels:  web-application
Webperl
Run Perl in the browser with WebPerl!
Stars: ✭ 221 (+234.85%)
Mutual labels:  web-application
Node Red Contrib Uibuilder
Easily create data-driven web UI's for Node-RED using any (or no) front-end library. VueJS and bootstrap-vue included but change as desired.
Stars: ✭ 215 (+225.76%)
Mutual labels:  web-application
configurable-app-examples-4x-js
Configurable Application Examples using ApplicationBase
Stars: ✭ 22 (-66.67%)
Mutual labels:  arcgis-online
Dns Ui
Opera's LDAP-authenticated PowerDNS user interface
Stars: ✭ 211 (+219.7%)
Mutual labels:  web-application
UofT-Timetable-Generator
A web application that generates timetables for university students at the University of Toronto
Stars: ✭ 34 (-48.48%)
Mutual labels:  web-application
Imagery-Apps
Example JavaScript source code for ArcGIS imagery apps (Landsat Explorer and Sentinel Explorer) that you can expand or customize.
Stars: ✭ 24 (-63.64%)
Mutual labels:  arcgis-online
Kimchi
An HTML5 management interface for KVM guests
Stars: ✭ 2,773 (+4101.52%)
Mutual labels:  web-application
hololens-terrain-viewer
Holographic mapping powered by ArcGIS
Stars: ✭ 36 (-45.45%)
Mutual labels:  arcgis-online

geoform-template-js

App

GeoForm is a configurable template for form based data editing of a Feature Service. This application allows users to enter data through a form instead of a map’s pop-up while leveraging the power of the Web Map and editable Feature Services. This will geo-enable data and support workflows by lowering the barrier of entry for completing simple tasks. This template can be used to gather input from outside of an organization and collect valuable content for collaboration.

Live Demo

  • Map: Choose the web map used in your application.
  • Title: Customize the title of the application.
  • Logo: Choose a logo to display in the application.
  • Description: Describe the form.
  • Editable Layer: Choose the editable Feature Service used for collecting the input data.
  • Fields: Select which fields to display and collect data within the form.
  • Color Scheme: Choose the color scheme of the application.
  • Mobile: A responsive web application that adapts to a resolution using Twitter’s Bootstrap framework.
  • Share: Enable sharing using Twitter or Facebook or email.

The GeoForm template can be accessed via the ArcGIS template gallery or item details. The application source code can be downloaded for further customization and hosted on your own web server.

Instructions

  1. Download and unzip the .zip file or clone the repository.
  2. Web-enable the directory.
  3. Access the .html page.
  4. Start writing your template!

New to Github? Get started here.

Deploying

  1. To deploy this application, download the template from Portal/ArcGIS Online and unzip it.
  2. Copy the unzipped folder containing the web app template files, such as index.html, to your web server. You can rename the folder to change the URL through which users will access the application. By default the URL to the app will be http://<Your Web Server>/<app folder name>/index.html
  3. Change the sharing host, found in defaults.js inside the config folder for the application, to the sharing URL for ArcGIS Online or Portal. For ArcGIS Online users, keep the default value of www.arcgis.com or specify the name of your organization.
  • ArcGIS Online Example: "sharinghost": "https://" + “<your organization name>.maps.arcgis.com
  • Portal Example where arcgis is the name of the Web Adaptor: "sharinghost": "https://" + "webadaptor.domain.com/arcgis"
  1. If you are using Portal or a local install of the ArcGIS API for JavaScript, change all references to the ArcGIS API for JavaScript in index.html to refer to your local copy of the API. Search for the references containing "https://js.arcgis.com/3.35" and replace this portion of the reference with the url to your local install.
  • For example: "https://webadaptor.domain.com/arcgis/jsapi/jsapi" where arcgis is the name of your Web Adaptor.
  1. Copy a map or group ID from Portal/ArcGIS Online and replace the default web map ID in the application’s defaults.js file. You can now run the application on your web server or customize the application further.

Note: If your application edits features in a feature service, contains secure services or web maps that aren't shared publicly, or generate requests that exceed 200 characters, you may need to set up and use a proxy page. Common situations where you may exceed the URL length are using complex polygons as input to a task or specifying a spatial reference using well-known text (WKT). For details on installing and configuring a proxy page see Using the proxy. If you do not have an Internet connection, you will need to access and deploy the ArcGIS API for JavaScript documentation from developers.arcgis.com.

Adding The Template To Your ArcGIS Online Organization

See how you can add this template to your organization as an early adopter.

More Information

See the ArcGIS Blog post for additional informationa bout this application.

Offline Editing

This template supports editing offline using the Esri Offline Editor JS. For more information on web offline editing see the github project linked above.

This template supports basic offline editing by saving the edits locally (including attachments) until a connection can be reestablished. As long as the browser window remains open or is reopened then the edits will get synched once an internet connection is restored. Support for offline with the Offline Editor JS is sufficient to handle workflows where connectivity is spotty. For a full picture on offline capabilities in ArcGIS we recommend you also research the following:

  • Build cross-platform custom offline mapping native apps for your Desktop or Mobile device using AppStudio for ArcGIS
  • Build custom offline mapping native apps with our ArcGIS Runtime SDKs (.Net, WPF, Java, iOS, Android, Qt/QML)
  • Use out of the box mobile apps for data capture:

Limitations

  • Currently only supports point editable feature layers.
  • Offline editing only supports storing applyEdits and submitting upon reconnection.
  • Offline does not cache tiles or services.

Requirements

  • Notepad or HTML editor
  • A little background with Javascript
  • Experience with the ArcGIS Javascript API would help.

Bootstrap

This application uses the Bootstrap framework for CSS, layout, components and theming. Bootstrap on GitHub.

Configuring The Template

This template includes an application builder. If you're using this template via ArcGIS.com, you can take advantage of this builder while logged into ArcGIS and by configuring the published application.

If you are not using ArcGIS Online applications, you can configure this template by editing the defaults.js in the config folder.

New to Github? Get started here.

Configuring defaults.js

This topic will explain how to configure some of the more advanced settings in defaults.js

Webmap

Specify the webmap ID to use for this template.

"webmap": "5fd247b0e5d844d99b7b9af36286a535",

Application ID

If you've configured an application instead of using just a webmap, place the application ID here.

"appid": "be338760de9249f8b15df22a8e4ee586",

Defining the FeatureService Layer

Set the "form_layer" property to specify whic layer to use for generating the form. This is the ID of the layer as specified in a webmap. If you don't specify anything here, it will use the first feature layer it can find in the webmap.

For example, to use the layer from this webmap, I would inspect the webmap response to get the layer ID as so:

Setting the layer ID like so:

"form_layer": {
    "id": "GeoFormTryItLive_v3_7854"
},

If you'd like to use all layers:

"form_layer": {
  "id": "All"
},

Configuring Fields

By default, the fields property is an empty array. When an empty array, all fields from the layer will be dispalyed and they will use the default values. These fields can be configured by setting this fields array to tell the GeoForm what fields show and their properties. You can set each fields label, help text (optional description), visibility, default populated value and hint text (placeholder).

Default Fields property

"fields": {},

Modified fields property

fields:{
  "GeoForm_Sample_3731": [{
    "name": "email", // field ID
    "alias": "Email", // label
    "fieldDescription": "Let us contact you.", // help text
    "visible": true, // show this field?
    "typeField": false, // subtype field?
    "tooltip": "[email protected]", // placeholder text
    "displayType": "email" // text, checkbox, radio, textarea, url, email
  }]
}

Configuring Application Details

The GeoForm title, description and logo can be customized. If they are left empty, they will use the webmap's default title, image and summary. If both are empty or undefined, then the item will not show in the application.

"details": {
    "Title": "My Custom Geoform",
    "Logo": "http://www.mysite.com/MyLogo.png",
    "Description": "Check out my GeoForm!"
}

If you don't want them to appear, set both the application and webmap values to an empty string.

Theme

Change the way this app looks by changing its theme. See the themes.js file for all of the available options. These free themes for Bootstrap can be previewed on the Bootswatch website.

"theme": "basic",

Reset Map Extent

If you'd like the map to be reset after each submission, set this option to true. If you dont want the map extent to return to its default when a submission occurs, set to false.

"defaultMapExtent": true,

Attachment Text

Use this text option to tell users what kind of file to attach.

"attachmentInfo": {
  "GeoForm_Sample_3731": {
    "enableAttachments": false,
    "attachmentIsRequired": false,
    "attachmentLabel": "",
    "attachmentHelpText": ""
  },
  "Test_secured_geoform_9625": {
    "enableAttachments": true,
    "attachmentIsRequired": false,
    "attachmentLabel": "",
    "attachmentHelpText": ""
  }
}

Use Small Header

This option will use smaller sized text for the GeoForm title and description instead of the larger Bootstrap Jumbotron(2).

useSmallHeader": false,

Enable Sharing

This option displays sharing links when a submission occurs. If you wouldn't like to display the sharing links when a user submits an entry, set this option to false.

"enableSharing": true,

Symbol

Set the symbol to use when a user selects a location. See the pushpins.js file for all the available options. You can modify this file to add your own custom symbols.

"pushpinColor": "grey",

Sharing Host

Use this template in an ArcGIS organization or portal application by changing this sharinghost URL to point to the location of the portal or organizaton.

"sharinghost": "http://myorg.maps.arcgis.com",

Reset to default extent on submission

defaultMapExtent: true,

Basemap Toggle Dijit

enableBasemapToggle: false,

Basemap Toggle next basemap

nextBasemap: "hybrid",

Basemap Toggle default basemap

defaultBasemap: "topo",

Automatically locate user on page load

locate: false,

Localizing the template

If you'd like to use this template with a language that is not currently supported, please follow these instructions to translate the template for a new locale.

A language is loaded depending on what the browser's locale is set to and if the language is defined in the template.

  1. Modify the /js/nls/resources.js file to add a new language.
    • Open up the file and scroll to the bottom. You will see a list of supported langauges by thier id string. such as '"ar": 1'.
    • To add a new language, create a new property with the language code. This tells the template that the new language is available to be used. ex: "fr":1,
  2. Create the folder in /js/nls/ for the language. Make sure this name matches the language code. ex: /js/nls/fr/
  3. Copy the /js/nls/resources.js file into your new language folder ex: /js/nls/fr/resources.js
  4. Remove all the strings with '"locale": 1' from the copied file.
  5. Modify the language file and translate the strings into the new language. ex: /js/nls/fr/resources.js - modified with strings changed

If you'd like your language to always be loaded no matter which browser locale the user is running you can modify the dojoConfig to add the locale you wish to load. This is located in the /index.html file near the top.

var dojoConfig = {
    locale: "fr"
};

See Dojo's localization help for more information.

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].