This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style>#bottomSection, #topSection { display:none; }</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.galleryNode .galleryLabelContainer { | |
color: #333 !important; | |
} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="width: 960px; | |
height: 470px; | |
background: url(http://downloads2.esri.com/agol/org/samples/graphics/esri-q.jpg); | |
-webkit-border-radius:0 0 10px 10px; | |
-moz-border-radius:0 0 10px 10px; | |
-o-border-radius:0 0 10px 10px; | |
border-radius:0 0 10px 10px"> | |
</div> | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, urllib, urllib2, simplejson as json | |
cwd = os.getcwd() | |
### Generate Token ### | |
gtUrl = 'https://www.arcgis.com/sharing/rest/generateToken' | |
gtValues = {'username' : 'username', | |
'password' : 'password', | |
'referer' : 'http://www.arcgis.com', | |
'f' : 'json' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arcpy, datetime, os, simplejson as json | |
cwd = os.getcwd() | |
### Load JSON File ### | |
with open('damageassessmentservice.json') as data_file: | |
data = json.load(data_file) | |
### Create Features ### | |
rows = arcpy.InsertCursor(cwd + '/data.gdb/Damage_Assessment') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arcpy, os, simplejson as json | |
cwd = os.getcwd() | |
### Load JSON File ### | |
with open('damageassessmentservice.json') as data_file: | |
data = json.load(data_file) | |
### Create Match Table ### | |
rows = arcpy.InsertCursor(cwd + '/data.gdb/MatchTable') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Replace these lines --> | |
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/esri/css/esri.css" /> | |
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dijit/themes/claro/claro.css"> | |
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2"></script> | |
<!-- With these lines --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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" xml:lang="en-us"> | |
<head> | |
<title>Shortlist</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*In the config section, add the following line above the existing code */ | |
var SHARINGURL = "http://<YOUR WEB SERVER NAME HERE>/sharing/content/items" ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function init() { | |
if (!_jqueryReady) return; | |
if (!_dojoReady) return; | |
esri.arcgis.utils.arcgisUrl = SHARINGURL; // ***ADD THIS LINE*** | |
if (getParameterByName("webmap") != "") { | |
WEBMAP_ID = getParameterByName("webmap"); | |
} |
OlderNewer