Text
Building custom mapping apps
Adding mapping functionality to existing apps
Extending ArcGIS Online templates
Esri WebApp Builder custom widgets
Map-centric app
Non map-centric app with map
Geographic analysis data - no map
Geographic data with no map
<link rel="stylesheet"
href="http://js.arcgis.com/3.14/esri/css/esri.css">
<script src="http://js.arcgis.com/3.14/"></script>
Geospatial database in the cloud
Accessible via HTTP requests
Get, add, update or delete geospatial data
Points, lines or polygons
API Module:
"esri/layers/FeatureLayer"
Handles all communication between app and the service
var featureLayer = new FeatureLayer("http://.../MapServer/2",{
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ["*"],
infoTemplate: infoTemplate
});
map.addLayer(featureLayer);
require([
"esri/map",
"esri/layers/FeatureLayer",
"dojo/domReady!"
], function(
Map,
FeatureLayer
) {
var map = new Map("mapDiv", {
basemap: "national-geographic",
center: [-84.1986, 34.0289],
zoom: 12
});
var url = "http://services.arcgis.com/uCXeTVveQzP4IIcx/ArcGIS/" +
"rest/services/POIJohnsCreek/FeatureServer/0";
var featureLayer = new FeatureLayer(url);
map.addLayer(featureLayer);
}
);
require([
"esri/map",
"esri/arcgis/utils",
"dojo/domReady!"
], function(Map, arcgisUtils){
arcgisUtils.createMap(<<Web Map Id>>, "mapDiv")
.then(function (response) {
map = response.map;
});
});
<link rel="stylesheet"
href="http://js.arcgis.com/3.14/esri/css/esri.css">
<script src="http://js.arcgis.com/3.14/"></script>
Hundreds of samples, templates, open source projects