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
/** | |
* Dojo AMD Google Maps Loader Plugin | |
*/ | |
define([ | |
"dojo/_base/kernel", | |
"dojo/topic" | |
], function (kernel, topic) { | |
var w = kernel.global; | |
var cb ="_googleApiLoadCallback"; |
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/dom-construct", "dijit/registry"], function (domConstruct, registry) { | |
return function (myHub) { | |
myHub.client.reload = function (mid) { | |
var mods = mid.split(","); | |
// call unload on old modules | |
require(mods, function () { | |
var factories = Array.prototype.slice.apply(arguments); | |
var state = mods.map(function (mid, i) { |
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
interface IGrassTestStyledLayerDescriptor { | |
version: string; | |
namedLayers: { | |
Grass: { | |
userStyles: Array<{ | |
defaultsPerSymbolizer: boolean; | |
rules: Array<{ | |
symbolizer: { | |
Polygon: { | |
fill: boolean; |
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
///<reference path="../../ref.d.ts"/> | |
interface IStyleLayerDescriptorFilter { | |
type?: string; | |
property?: string; | |
value?: string; | |
filters?: Array<IStyleLayerDescriptorFilter>; | |
} | |
// TODO: requires id to be optional for validation to succeed..report as TS defect? | |
interface IStyledLayerDescriptorRule { |
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
// converted from ol readers | |
declare module ogc { | |
module wms { | |
export interface ContactPersonPrimary { | |
ContactPerson: string; | |
ContactOrganization: string; | |
} |
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
// Fails because return value is not HTMLElement | |
query(".symbolBuilderPane").map(node => registry.byNode(node)); | |
//NodeList isn't really an array so this also fails: | |
array.map(query(".symbolBuilderPane"), node => registry.byNode(node)); | |
//No type of node so this fails: | |
array.map(<any>query(".symbolBuilderPane"), node => registry.byNode(node)); | |
// leaving me here: |
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
///<reference path="../ref.d.ts"/> | |
import declare = require("dojo/_base/declare"); | |
import lang = require("dojo/_base/lang"); | |
import ContentPane = require("dijit/layout/ContentPane"); | |
class LayerStylePane extends ContentPane { | |
constructor(options: any, container?: HTMLElement) { | |
this.baseClass = "layerStylePane"; | |
options.content = "<b>HELLO</b>"; | |
super(options, container); |
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
<html> | |
<head> | |
<title>ArcGIS Javascript API Debugging Configuration</title> | |
<link rel="stylesheet" href="http://localhost:84/arcgis_js_api/esri/css/esri.css"> | |
<style> | |
html, body, #map { | |
height: 100%; | |
width: 100%; | |
margin: 0; | |
padding: 0; |
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
declare module 'interfaces/json-schema' { | |
interface IDependencyDescriptor { | |
[s: string]: string; | |
} | |
interface IPropertyDescriptor { | |
[s: string]: { | |
'$ref'?: string; | |
type?: string; |
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
import Deferred = require('dojo/Deferred'); | |
import ContentPane = require("dijit/layout/ContentPane"); | |
import _WidgetBase = require("dijit/_WidgetBase"); | |
/* | |
dijit/layout/ContentPane wrapper as native typescript class | |
Constructor replaces itself with the underlying ContentPane | |
*/ | |
class MyContentPane implements ContentPane { |
OlderNewer