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
/** | |
* http://sampleserver6.arcgisonline.com/arcgis/sdk/rest/index.html#/Network_Layer/02ss0000009p000000/ | |
*/ | |
class Route { | |
private ajax: Ajax; | |
constructor(url: string) { | |
this.ajax = new Ajax(url); | |
} | |
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
<Maplet text="Civics Instrument List Maplet" id="rhythm-civics-instrument-list" about="Maplet configuration for Civics Instument List" parentId="toolbar"> | |
<MAP> | |
<SYMBOLOGY> | |
<SYMBOL label="<%= computedDescription %>" id="*" template="app/templates/civics-infoviewer-template"> | |
<ICON id="ServiceRequest.png"> | |
<FILTERS> | |
<FILTER id="_dataType" value="serviceRequest" /> | |
</FILTERS> | |
</ICON> | |
<ICON id="Planning_Application.png"> |
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
// Type definitions for OpenLayers.js 2.10 | |
// Project: https://github.com/openlayers/openlayers | |
// Definitions by: Ilya Bolkhovsky <https://github.com/bolhovsky> | |
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
declare namespace OpenLayers { | |
export const INCHES_PER_UNIT: any; | |
export var ProxyHost: 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
interface MapDrawerDatasetsConfigElement { | |
DatasetsElement?: MapDrawerDatasetsElement; | |
PreferencesElement?: MapDrawerPreferencesElement; | |
DatasetGroupsElement?: MapDrawerDatasetGroupsElement; | |
DatasetLevelsElement?: MapDrawerDatasetsLevelsElement; | |
DatasetToolsElement?: MapDrawerToolsConfigElement; | |
TileCacheUrl?: string; | |
JsMixin?: string; | |
JsLoad?: string; | |
JsLoaded?: 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
/** | |
* Usage: | |
import Resx = require("i18n"); | |
let en = Resx("en"); | |
en.foo = "bar"; | |
let enUs = Resx("en-US"); | |
should.equal(en.foo, "bar"); | |
should.equal(enUs.foo, "bar"); | |
en.foo = "en-foo"; | |
should.equal(en.foo, "en-foo", "en test 1"); |
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 namespace { | |
export interface Layout { | |
id: string; | |
} | |
export interface Panel { | |
position: string; | |
size: 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
<CONFIG> | |
<GISCONFIG Enabled="True" LocalOnly="True" SourceProj4="+proj=tmerc +lat_0=34.75 +lon_0=-115.5833333333333 +k=0.9999 +x_0=200000.00001016 +y_0=8000000.000010163 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 +no_defs " SpatialReference="3421" TargetProj4="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs " TargetSpatialReference="4326" /> | |
<MAPLETS> | |
<Maplet about="Provides basic map functionality including default projections, basemaps, initial extent, ips symbology rules" id="base" text="RhythmGIS"> | |
<MAP> | |
<VIEWPORT about="Greenville" extent="-82.3,34.8,-82.1,35" /> | |
<LAYERS> | |
<LAYER basemap="True" id="mapquest-osm" maxlevel="20" minlevel="10" text="Map Quest" type="app/layer-factory/native"> | |
<OPTIONS> | |
<Values id="layerType" value="mapquest" /> |
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
export interface Format { | |
places: number; | |
digitSeparator: boolean; | |
dateFormat: string; | |
} | |
export interface FieldInfo { | |
fieldName: string; | |
label: string; | |
isEditable: 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
[ | |
{ | |
"star": { | |
"fill": { | |
"color": "rgba(123,254,117,0.2733286948332644)" | |
}, | |
"opacity": 1, | |
"stroke": { | |
"color": "rgba(24,47,10,0.9853587034474919)", | |
"width": 12.115629611976441 |
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
// polyfill for RegExp.escape | |
if(!RegExp.escape){ | |
RegExp.escape = function(s){ | |
return String(s).replace(/[\\^$*+?.()|[\]{}]/g, '\\$&'); | |
}; | |
} | |
function wildcard(pattern: string) { | |
let regex = new RegExp(pattern.split("*").map(RegExp.escape).join(".*")); | |
return (value: string) => { |