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
esri.request({ | |
url: 'https://geotrigger.arcgis.com/trigger/list', | |
headers: { | |
'Authorization' : 'Bearer <my super duper valid Access Token>' | |
} | |
}).then( | |
function (response) { | |
console.log(response); | |
} | |
); |
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
//create stream layer from feature service URL | |
function createStreamLayer() { | |
var fl_url = 'http://arcgis-commse-1029264944.us-east-1.elb.amazonaws.com/arcgis/rest/services/amiller/FMS_datalayers/FeatureServer/2'; | |
var streamLayer = new StreamLayer(fl_url, { | |
//websocket URL from GeoEvent Processor | |
socketUrl: 'ws://172.16.183.137:6180/ws_pg', | |
trackIdField: 'ROUTE_ID', | |
outFields: ['*'] | |
}); |
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
// | |
// AppDelegate.m | |
// retailgt | |
// | |
// Created by adam on 11/26/13. | |
// Copyright (c) 2013 esri. All rights reserved. | |
// | |
#import "AppDelegate.h" | |
#import <GeotriggerSDK/GeotriggerSDK.h> |
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
var Geoservices = require('geoservices'); | |
var client = new Geoservices(); | |
// console.log(client); | |
var query_params = { | |
f: 'json', | |
returnGeometry: true, | |
where: '1=1', | |
outSR: '4326' |
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
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |
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> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href= | |
"http://js.arcgis.com/3.14/esri/css/esri.css"> | |
<link rel="stylesheet" type="text/css" href= | |
"https://rawgit.com/benheb/legend/master/legend.css"> |
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
[ | |
{ | |
"target_id": "1.1", | |
"has_metadata": true, | |
"goal": 1, | |
"goal_meta_link": "http://unstats.un.org/sdgs/files/metadata-compilation/Metadata-Goal-1.pdf", | |
"goal_meta_link_page": 2, | |
"target": "By 2030, eradicate extreme poverty for all people everywhere, currently measured as people living on less than $1.25 a day.", | |
"indicator_id": "1.1.1", | |
"indicator": "Proportion of population below the international poverty line, by sex, age, employment status and geographical location (urban/rural)", |
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
getFormField(field,index) { | |
const self = this; | |
if (this.formItemStatus[field.fieldID] === undefined) { | |
this.formItemStatus[field.fieldID] = false; | |
} | |
const defaults = { | |
contributing: true, |
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 | |
import json | |
import csv | |
from datetime import datetime | |
import time | |
start_time = time.time() | |
arcpy.env.overwriteOutput = True |
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
define(["dojo/topic"], function(topic) { | |
/* | |
* Custom Javascript to be executed while the application is initializing goes here | |
*/ | |
// The application is ready | |
topic.subscribe("tpl-ready", function() { | |
/* | |
* Custom Javascript to be executed when the application is ready goes here | |
*/ |
OlderNewer