Skip to content

Instantly share code, notes, and snippets.

Tom Wayson tomwayson

View GitHub Profile
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]-->
<meta charset="utf-8">
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('', []);
angular.module('').factory('esriLoader', function ($q) {
return function(moduleName){
var deferred = $q.defer();
require([moduleName], function(module){
tomwayson / gruntfile.js
Last active Aug 29, 2015
grunt-amdcheck config
View gruntfile.js
/*global module*/
module.exports = function(grunt) {
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 / index.html
Last active Aug 29, 2015
Dijit Dialog
View index.html
<!DOCTYPE html>
<html >
<!-- Dojo claro theme for Dojo Dijits -->
<link rel="stylesheet" href="//">
<!-- esri stylesheet not used by Dojo widgets, but if there were a map on this page, you'd need it -->
<link rel="stylesheet" href="">
<script>dojoConfig = {parseOnLoad: true}</script>
tomwayson / index.html
Last active Aug 17, 2017
Custom ArcGISDynamicMapServiceLayer
View index.html
<!DOCTYPE html>
Example of how to extend the ArcGISDynamicMapService layer to send custom parameters to exportMap.
Adapted from the Dynamic Map Service Example:
<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 / 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
You can’t perform that action at this time.