This file contains hidden or 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(){ | |
| var server = location.pathname.replace(/\/[^\/]+$/, ""); | |
| if (window.jasmine) { | |
| server += '/src'; | |
| } | |
| // var server = 'http://mapserv.utah.gov/DEQSpills'; | |
| var head = document.getElementsByTagName('head').item(0); | |
| function loadCss(href){ |
This file contains hidden or 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
| { | |
| "files": [{ | |
| "fi": 1, | |
| "fn": "12.mbtiles", | |
| "li": 12, | |
| "dp": "Chetek Chain (Barron) | Wisconsin", | |
| "sz": 22361, | |
| "ot": 1, | |
| "pt": ["Wisconsin"] | |
| }, { |
This file contains hidden or 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
| make polygon feature layer | |
| make point feature layer | |
| get search cursor for polygon feature layer | |
| loop through polygons: | |
| select by attributes the polygon feature layer using the oid of the feature | |
| select by location the point feature layer using the polygon feature layer | |
| calculate field on the point feature layer equal to a value in the current polygon | |
| done |
This file contains hidden or 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
| loadMapWithAllParams = function () { | |
| var app = new AGRCMap({ | |
| apiKey: apiKey, | |
| UTM_X: 418502, | |
| UTM_Y: 4519515, | |
| countyName: 'KANE', | |
| cityName: 'Cottonwood Heights', | |
| addressStreet: '2832 banbury rd', | |
| addressZone: '84121', | |
| milepost: '300', |
This file contains hidden or 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
| git clone https://github.com/agrc/AGRCJavaScriptProjectBoilerPlate.git --recursive | |
| npm install |
This file contains hidden or 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(function () { | |
| // summary: | |
| // A dojo loader plugin for loading esri modules so that | |
| // they get ignored by the build system. | |
| return { | |
| load: function (id, require, callback) { | |
| // id: String | |
| // esri module id | |
| // require: Function | |
| // AMD require; usually a context-sensitive require bound to the module making the plugin request |
This file contains hidden or 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
| require({async: 0}); // need sync to make sure that proj4leaflet gets loaded last | |
| define([ | |
| 'dojo/_base/declare', | |
| 'dijit/_WidgetBase', | |
| 'dijit/_TemplatedMixin', | |
| 'dijit/_WidgetsInTemplateMixin', | |
| 'dojo/text!app/location/templates/VerifyMap.html', | |
| 'dojo/topic', | |
| 'leaflet/proj4js-compressed', |
This file contains hidden or 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
| echo "slurping esri modules" | |
| cat $HARFILE | grep 'js/esri.*js' | awk '{print $2}' | perl -pe 's/",?//g' > "$BASEDIR/profiles/esriUrls.txt" | |
| wget -xi "$BASEDIR/profiles/esriUrls.txt" | |
| rsync -avh "serverapi.arcgisonline.com/jsapi/arcgis/3.5amd/js/esri" "src/" | |
| rm -rf "serverapi.arcgisonline.com" | |
| echo "processing esri modules" | |
| cd "$SRCDIR/esri" | |
| FILES=$(find .) | |
| for f in $FILES |
This file contains hidden or 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/_base/declare', | |
| 'dijit/_WidgetBase', | |
| 'dijit/_TemplatedMixin', | |
| 'dijit/_WidgetsInTemplateMixin', | |
| 'dojo/text!app/templates/Popup.html', | |
| 'dojo/_base/lang' | |
| ], |
This file contains hidden or 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
| SELECT last_user_update, * | |
| FROM sys.dm_db_index_usage_stats | |
| WHERE OBJECT_ID=OBJECT_ID('ROADS') |