Skip to content

Instantly share code, notes, and snippets.

Tom Wayson tomwayson

Block or report user

Report or block tomwayson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tomwayson
tomwayson / index.html
Last active Aug 29, 2015
Cedar AMD Example
View index.html
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8"> <![endif]-->
<!--[if IE 9 ]> <html class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html class="not-ie"> <!--<![endif]-->
<head>
<meta charset="utf-8">
@tomwayson
tomwayson / angular-esri-map.js
Last active Aug 29, 2015
angular-esri-map base gist
View angular-esri-map.js
(function(angular) {
'use strict';
angular.module('esri.map', []);
angular.module('esri.map').factory('esriLoader', function ($q) {
return function(moduleName){
var deferred = $q.defer();
require([moduleName], function(module){
@tomwayson
tomwayson / gruntfile.js
Last active Aug 29, 2015
grunt-amdcheck config
View gruntfile.js
/*global module*/
module.exports = function(grunt) {
grunt.initConfig({
amdcheck: {
dev: {
options: {
// set this to true when you're ready to pull the trigger
removeUnusedDependencies: false, // justpreview changes that will be made in console
@tomwayson
tomwayson / index.html
Last active Aug 29, 2015
Dijit Dialog
View index.html
<!DOCTYPE html>
<html >
<head>
<!-- Dojo claro theme for Dojo Dijits -->
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/dojo/1.10.3/dijit/themes/claro/claro.css">
<!-- esri stylesheet not used by Dojo widgets, but if there were a map on this page, you'd need it -->
<link rel="stylesheet" href="http://js.arcgis.com/3.12/esri/css/esri.css">
<script>dojoConfig = {parseOnLoad: true}</script>
@tomwayson
tomwayson / index.html
Last active Aug 17, 2017
Custom ArcGISDynamicMapServiceLayer
View index.html
<!DOCTYPE html>
<html>
<!--
Example of how to extend the ArcGISDynamicMapService layer to send custom parameters to exportMap.
Adapted from the Dynamic Map Service Example:
https://developers.arcgis.com/javascript/jssamples/map_dynamic.html
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
@tomwayson
tomwayson / portalUtils.js
Created Jul 10, 2013
An AMD utility module for working with ArcGIS portal items that including helper functions missing from other esri/arcgis classes (addItem, etc)
View portalUtils.js
define([
"dojo/io-query",
"esri/request",
"esri/arcgis/utils"
],
function(
ioQuery,
esriRequest,
You can’t perform that action at this time.