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 districtHandler = function(result) { | |
if (query_manhole && query_manhole.length > 4) { | |
var srv = new ServiceHandler(); | |
srv.handleResponse(result, distGrid, function() { | |
proxy.sigmaDJOForManhole( query_manhole, new Async( function(distResult) { | |
if ( distResult.length > 0 ) { | |
var value = distGrid.store.fetch( { query: {DJO: distResult}, | |
onComplete: function(items, r) { | |
var index = distGrid.getItemIndex(items[0]); | |
distGrid.selection.setSelected(index, 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
var EXTENSION = require(__dirname + '/build/default/extension.node').EXTENSION; | |
var events = require('events'); | |
inherits(EXTENSION, events.EventEmitter); | |
exports.EXTENSION = EXTENSION; | |
function inherits(target, source) { | |
for (var k in source.prototype) { | |
target.prototype[k] = source.prototype[k]; | |
} |
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 stripJSON = function(str) { | |
return str.replace(/\\n/g, "\\n") | |
.replace(/\\t/g, "\\t"); | |
}; | |
var jsonToObject = function(stringIn) { | |
var data; | |
try { | |
data = JSON.parse(stripJSON(stringIn)); | |
console.log("json converted to object"); |
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
<table> | |
<tr> | |
<td>Grant Deed</td> | |
<td>${Grant Deed Number}</td> | |
</tr> | |
<tr> | |
<td>Grant Deed</td> | |
<td>${Grant Deed Number 2}</td> | |
</tr> | |
<tr> |
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> | |
<head> | |
<meta content='text/html, charset=UTF-8' http-equiv='Content-Type' /> | |
<meta content='IE=7,IE=8,IE=9' http-equiv='X-UA-Compatible' /> | |
<meta content='initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport' /> | |
<style type="text/css"> | |
@import url("http://code.leafletjs.com/leaflet-0.3.1/leaflet.css"); | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, |
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
''' | |
Created on Feb 24, 2011 | |
The purpose of this script is to create the SDE connection file needed to connect to your SDE | |
@author: rrubalcava | |
''' | |
import os, arcpy | |
class CreateSDEConnection: |
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
/** | |
* This is the build file I have started using | |
* to build my ArcGIS JS API 3.0 apps, which are | |
* based on Dojo 1.7. I used a similar build file | |
* when I was using Require.js, so it wasn't much different. | |
* | |
* I tried using the Dojo Build Tools, but it just seemed | |
* way too bloated to download the Dojo SDK, sort my files, | |
* blah blah blah. With r.js I can use Node NPM to | |
* npm install requirejs and just use the following command |
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
# This is a script that I use to convert geojson to | |
# features in a file gdb | |
# Step 1. Use the REST page of an ArcGIS Map Service to | |
# get the esri json results of the data you want. | |
# Step 2. I used my EsriJSON to GeoJSON app to convert | |
# the results to geojson. http://esritogeo.herokuapp.com/ | |
# Step 3. In ArcMap, use the python window to create a | |
# python dictionary of your geojson. | |
# Step4. Use the following script to convert that geojson | |
# into featureclasses and then merge them. |
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
// Because I was bored and wanted to use the foo.on() method with my map | |
define(['dojo/_base/declare', 'dojo/Evented'], function(declare, Evented) { | |
var EventedMap = declare([Evented, esri.Map], { | |
constructor: function() { | |
var _this = this; | |
dojo.connect(this, "onClick", function(event) { | |
return _this.emit("click", event); | |
}); | |
dojo.connect(this, "onDblClick", function(event) { |