Skip to content
Snippets Groups Projects
Commit dec7630f authored by Glenn Vorhes's avatar Glenn Vorhes
Browse files

start transition to tests

parent 8bbb0343
No related branches found
No related tags found
No related merge requests found
Showing
with 30 additions and 281 deletions
import 'jquery-ui';
......@@ -6,6 +6,7 @@ var media_control_1 = require("../domUtil/media-control");
var $ = require("jquery");
var LayerBaseVectorEsri_1 = require("../layers/LayerBaseVectorEsri");
var LayerEsriMapServer_1 = require("../layers/LayerEsriMapServer");
require("jquery-ui");
var nexrhresStatic = new LayerRealEarthTile_1.default({
products: 'nexrhres',
id: 'nexrhres-static',
......
{"version":3,"file":"animate.js","sourceRoot":"","sources":["../../src/_test/animate.ts"],"names":[],"mappings":";;AAAA,kDAA+C;AAC/C,mEAA8D;AAC9D,0DAAsE;AACtE,0BAA6B;AAC7B,qEAAkE;AAClE,mEAAgE;AAGhE,IAAI,cAAc,GAAG,IAAI,4BAAkB,CAAC;IACpC,QAAQ,EAAE,UAAU;IACpB,EAAE,EAAE,iBAAiB;IACrB,OAAO,EAAE,GAAG;IACZ,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,qBAAqB;IAC3B,eAAe;IACf,gBAAgB,EAAE,UAAU,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC;CACJ,CACJ,CAAC;AAGF,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE,CAAC;AACnB,IAAI,OAAO,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;AAC1B,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC;AAC7B,IAAI,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;AAC5B,IAAI,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAEtD,IAAI,KAAK,GAAG,IAAI,4BAAY,CACxB,CAAC,CAAC,UAAU,CAAC,EACb,U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ACb,OAAO,EAAE,CAAC;QACV,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,IAAI;KACvB,CACJ,CAAC;IACF,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AACxC,CAAC","sourcesContent":["import {quickMap} from '../olHelpers/quickMap';\r\nimport LayerRealEarthTile from \"../layers/LayerRealEarthTile\";\r\nimport {MediaControl, changeFunction} from \"../domUtil/media-control\";\r\nimport $ = require('jquery');\r\nimport {LayerBaseVectorEsri} from \"../layers/LayerBaseVectorEsri\";\r\nimport {LayerEsriMapServer} from \"../layers/LayerEsriMapServer\";\r\n\r\n\r\nlet nexrhresStatic = new LayerRealEarthTile({\r\n products: 'nexrhres',\r\n id: 'nexrhres-static',\r\n opacity: 0.6,\r\n animate: true,\r\n name: 'Hybrid Reflectivity',\r\n // maxZoom: 10,\r\n timeLoadCallback: function (f) {\r\n console.log(f);\r\n }\r\n }\r\n);\r\n\r\n\r\nlet d = new Date();\r\nlet endTime = d.getTime();\r\nd.setHours(d.getHours() - 4);\r\nlet startTime = d.getTime();\r\nlet rangeStep = Math.round((endTime - startTime) / 8);\r\n\r\nlet media = new MediaControl(\r\n $('#control'),\r\n (v: number) => {\r\n nexrhresStatic.setLayerTime(v);\r\n },\r\n {\r\n min: startTime,\r\n max: endTime,\r\n val: endTime,\r\n step: rangeStep,\r\n playInterval: 750,\r\n showAsDate: true\r\n }\r\n);\r\n\r\n\r\nlet map = quickMap();\r\nmap.addLayer(nexrhresStatic.olLayer);\r\n\r\n\r\nlet coordinationLayer = new LayerBaseVectorEsri(\r\n 'http://transportal.cee.wisc.edu/applications/arcgis2/rest/services/GLRTOC/GlrtocCoordination/MapServer/0',\r\n {\r\n visible: true,\r\n autoLoad: true,\r\n name: 'Coordination',\r\n useEsriStyle: true\r\n }\r\n);\r\n\r\nmap.addLayer(coordinationLayer.olLayer);\r\n\r\n let oakRidgeLayers = [\r\n ['Cameras', 'cameras33'],\r\n ['HAR', 'HAR33'],\r\n ['DMS', 'MessageSigns33'],\r\n //['State Summary', 'statesummary'],\r\n ['Traffic Control', 'TrafficControl33'],\r\n ['Traffic Detection', 'TrafficDetectionMulti'],\r\n ['Weather', 'Weather33']\r\n ];\r\n\r\n\r\n for (let i = 0; i < oakRidgeLayers.length; i++) {\r\n let oakRidgeLayer = new LayerEsriMapServer(\r\n `http://itsdpro.ornl.gov/arcgis/rest/services/ITSPublic/${oakRidgeLayers[i][1]}/MapServer`,\r\n {\r\n id: oakRidgeLayers[i][1],\r\n name: oakRidgeLayers[i][0],\r\n visible: true,\r\n minZoom: 7,\r\n zIndex: 20,\r\n addPopup: true,\r\n legendCollapse: true\r\n }\r\n );\r\n map.addLayer(oakRidgeLayer.olLayer);\r\n }\r\n\r\n"]}
\ No newline at end of file
{"version":3,"file":"animate.js","sourceRoot":"","sources":["../../src/_test/animate.ts"],"names":[],"mappings":";;AAAA,kDAA+C;AAC/C,mEAA8D;AAC9D,0DAAsE;AACtE,0BAA6B;AAC7B,qEAAkE;AAClE,mEAAgE;AAChE,qBAAmB;AAGnB,IAAI,cAAc,GAAG,IAAI,4BAAkB,CAAC;IACpC,QAAQ,EAAE,UAAU;IACpB,EAAE,EAAE,iBAAiB;IACrB,OAAO,EAAE,GAAG;IACZ,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,qBAAqB;IAC3B,eAAe;IACf,gBAAgB,EAAE,UAAU,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC;CACJ,CACJ,CAAC;AAGF,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE,CAAC;AACnB,IAAI,OAAO,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;AAC1B,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC;AAC7B,IAAI,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;AAC5B,IAAI,SAAS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,eAAY,EAC1F;QACI,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxB,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1B,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,CAAC;QACV,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,IAAI;KACvB,CACJ,CAAC;IACF,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AACxC,CAAC","sourcesContent":["import {quickMap} from '../olHelpers/quickMap';\r\nimport LayerRealEarthTile from \"../layers/LayerRealEarthTile\";\r\nimport {MediaControl, changeFunction} from \"../domUtil/media-control\";\r\nimport $ = require('jquery');\r\nimport {LayerBaseVectorEsri} from \"../layers/LayerBaseVectorEsri\";\r\nimport {LayerEsriMapServer} from \"../layers/LayerEsriMapServer\";\r\nimport 'jquery-ui';\r\n\r\n\r\nlet nexrhresStatic = new LayerRealEarthTile({\r\n products: 'nexrhres',\r\n id: 'nexrhres-static',\r\n opacity: 0.6,\r\n animate: true,\r\n name: 'Hybrid Reflectivity',\r\n // maxZoom: 10,\r\n timeLoadCallback: function (f) {\r\n console.log(f);\r\n }\r\n }\r\n);\r\n\r\n\r\nlet d = new Date();\r\nlet endTime = d.getTime();\r\nd.setHours(d.getHours() - 4);\r\nlet startTime = d.getTime();\r\nlet rangeStep = Math.round((endTime - startTime) / 8);\r\n\r\nlet media = new MediaControl(\r\n $('#control'),\r\n (v: number) => {\r\n nexrhresStatic.setLayerTime(v);\r\n },\r\n {\r\n min: startTime,\r\n max: endTime,\r\n val: endTime,\r\n step: rangeStep,\r\n playInterval: 750,\r\n showAsDate: true\r\n }\r\n);\r\n\r\n\r\nlet map = quickMap();\r\nmap.addLayer(nexrhresStatic.olLayer);\r\n\r\n\r\nlet coordinationLayer = new LayerBaseVectorEsri(\r\n 'http://transportal.cee.wisc.edu/applications/arcgis2/rest/services/GLRTOC/GlrtocCoordination/MapServer/0',\r\n {\r\n visible: true,\r\n autoLoad: true,\r\n name: 'Coordination',\r\n useEsriStyle: true\r\n }\r\n);\r\n\r\nmap.addLayer(coordinationLayer.olLayer);\r\n\r\n let oakRidgeLayers = [\r\n ['Cameras', 'cameras33'],\r\n ['HAR', 'HAR33'],\r\n ['DMS', 'MessageSigns33'],\r\n //['State Summary', 'statesummary'],\r\n ['Traffic Control', 'TrafficControl33'],\r\n ['Traffic Detection', 'TrafficDetectionMulti'],\r\n ['Weather', 'Weather33']\r\n ];\r\n\r\n\r\n for (let i = 0; i < oakRidgeLayers.length; i++) {\r\n let oakRidgeLayer = new LayerEsriMapServer(\r\n `http://itsdpro.ornl.gov/arcgis/rest/services/ITSPublic/${oakRidgeLayers[i][1]}/MapServer`,\r\n {\r\n id: oakRidgeLayers[i][1],\r\n name: oakRidgeLayers[i][0],\r\n visible: true,\r\n minZoom: 7,\r\n zIndex: 20,\r\n addPopup: true,\r\n legendCollapse: true\r\n }\r\n );\r\n map.addLayer(oakRidgeLayer.olLayer);\r\n }\r\n\r\n"]}
\ No newline at end of file
......@@ -5,6 +5,7 @@
*/
import { TipSliders, TipPresetConfig, TipSliderConfig } from '../collections/Sliders';
import ol = require('custom-ol');
import 'jquery-ui';
export interface ITipConfig {
slidersConfig: Array<TipSliderConfig>;
presetConfig: Array<TipPresetConfig>;
......
......@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
*/
var Sliders_1 = require("../collections/Sliders");
var $ = require("jquery");
require("jquery-ui");
exports.tipConfig = {
$loadingGif: $('#loading-gif'),
$presetSelector: $('#preset-selector'),
......
This diff is collapsed.
/// <reference types="jquery" />
/// <reference types="jqueryui" />
import 'jquery-ui';
export declare class DayRange {
_workingDayRange: number;
_$startDate: JQuery;
......
......@@ -2,7 +2,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
var provide_1 = require("../util/provide");
var $ = require("jquery");
// import 'jquery-ui';
require("jquery-ui");
var nm = provide_1.default('domUtil');
var DayRange = (function () {
/**
......
{"version":3,"file":"day-range.js","sourceRoot":"","sources":["../../src/domUtil/day-range.ts"],"names":[],"mappings":";;AAAA,2CAAsC;AACtC,0BAA6B;AAC7B,sBAAsB;AAEtB,IAAI,EAAE,GAAG,iBAAO,CAAC,SAAS,CAAC,CAAC;AAE5B;IAQI;;;;OAIG;IACH,kBAAY,SAAiB,EAAE,QAAgB;QAC3C,IAAI,CAAC,gBAAgB,GAAG,QAAQ,GAAG,CAAC,CAAC;QAErC,IAAI,UAAU,GAAG,oGAAoG;YACjH,sFAAsF;YACtF,qGAAqG;YACrG,mFAAmF,CAAC;QAExF,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAE7B,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC;QACpC,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC;QAEhC,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC;QAC9B,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;QAE5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QAErB,IAAI,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACtB,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAC1B,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;QAC7B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAErD,IA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G,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;YACjD,CAAC;QACL,CAAC;;;OAhBA;IAiBL,eAAC;AAAD,CAAC,AApGD,IAoGC;AApGY,4BAAQ;AAsGrB,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAEvB,kBAAe,QAAQ,CAAC","sourcesContent":["import provide from '../util/provide';\r\nimport $ = require('jquery');\r\n// import 'jquery-ui';\r\n\r\nlet nm = provide('domUtil');\r\n\r\nexport class DayRange {\r\n _workingDayRange: number;\r\n _$startDate: JQuery;\r\n _$endDate: JQuery;\r\n _maxDateRange: number;\r\n _startDate: Date;\r\n _endDate: Date;\r\n\r\n /**\r\n * constructor for the date range\r\n * @param {number} dayRange number of days\r\n * @param {jQuery|HTMLElement|*} jQueryRef reference to the jquery element\r\n */\r\n constructor(jQueryRef: JQuery, dayRange: number) {\r\n this._workingDayRange = dayRange - 1;\r\n\r\n let pickerHtml = '<label for=\"start-date\" style=\"width: 78px; display: inline-block; margin:5px;\">Start Date</label>' +\r\n '<input type=\"text\" readonly id=\"start-date\" class=\"date-pick\" style=\"width: 90px;\">' +\r\n '<br><label for=\"end-date\" style=\"width: 78px; display: inline-block; margin:5px;\">End Date</label>' +\r\n '<input type=\"text\" readonly id=\"end-date\" class=\"date-pick\" style=\"width: 90px;\">';\r\n\r\n jQueryRef.append(pickerHtml);\r\n\r\n this._$startDate = $('#start-date');\r\n this._$endDate = $('#end-date');\r\n\r\n this._$startDate.datepicker();\r\n this._$endDate.datepicker();\r\n\r\n this._startDate = null;\r\n this._endDate = null;\r\n\r\n let dte1 = new Date();\r\n dte1.setHours(0, 0, 0, 0);\r\n let dte2 = new Date(dte1.getTime());\r\n dte2.setDate(dte2.getDate() + dayRange);\r\n dte2.setHours(23, 59, 59, 0);\r\n this._maxDateRange = dte2.getTime() - dte1.getTime();\r\n\r\n let _this = this;\r\n\r\n //add event listeners\r\n this._$startDate.change(function () {\r\n _this.startDate = this.value;\r\n });\r\n\r\n this._$endDate.change(function () {\r\n _this.endDate = this.value;\r\n });\r\n\r\n // initialize\r\n this.endDate = new Date();\r\n }\r\n\r\n get startDate(): Date {\r\n return this._startDate;\r\n }\r\n\r\n /**\r\n *\r\n * @param val\r\n */\r\n set startDate(val: Date) {\r\n if (typeof val == 'string') {\r\n val = new Date(val as string);\r\n }\r\n\r\n this._startDate = val;\r\n this._startDate.setHours(0, 0, 0, 0);\r\n this._$startDate.val(this._startDate.toLocaleDateString());\r\n\r\n if (\r\n this.endDate == null ||\r\n this._endDate.getTime() - this._startDate.getTime() > this._maxDateRange ||\r\n this._endDate.getTime() - this._startDate.getTime() < 24 * 60 * 60 * 1000) {\r\n let tmpDate = new Date(this._startDate.getTime());\r\n tmpDate.setDate(tmpDate.getDate() + this._workingDayRange);\r\n this.endDate = new Date(tmpDate.getTime());\r\n }\r\n }\r\n\r\n get endDate(): Date {\r\n return this._endDate;\r\n }\r\n\r\n\r\n set endDate(val: Date) {\r\n if (typeof val == 'string') {\r\n val = new Date(val as string);\r\n }\r\n\r\n this._endDate = val;\r\n this._endDate.setHours(23, 59, 59, 0);\r\n this._$endDate.val(this._endDate.toLocaleDateString());\r\n if (this._startDate == null || this._endDate.getTime() - this.startDate.getTime() > this._maxDateRange || this._endDate.getTime() - this._startDate.getTime() < 24 * 60 * 60 * 1000) {\r\n let tmpDate = new Date(this._endDate.getTime());\r\n tmpDate.setDate(tmpDate.getDate() - this._workingDayRange);\r\n this.startDate = new Date(tmpDate.getTime());\r\n }\r\n }\r\n}\r\n\r\nnm.DayRange = DayRange;\r\n\r\nexport default DayRange;\r\n\r\n"]}
\ No newline at end of file
{"version":3,"file":"day-range.js","sourceRoot":"","sources":["../../src/domUtil/day-range.ts"],"names":[],"mappings":";;AAAA,2CAAsC;AACtC,0BAA6B;AAC7B,qBAAmB;AAEnB,IAAI,EAAE,GAAG,iBAAO,CAAC,SAAS,CAAC,CAAC;AAE5B;IAQI;;;;OAIG;IACH,kBAAY,SAAiB,E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$ = require('jquery');\r\nimport 'jquery-ui';\r\n\r\nlet nm = provide('domUtil');\r\n\r\nexport class DayRange {\r\n _workingDayRange: number;\r\n _$startDate: JQuery;\r\n _$endDate: JQuery;\r\n _maxDateRange: number;\r\n _startDate: Date;\r\n _endDate: Date;\r\n\r\n /**\r\n * constructor for the date range\r\n * @param {number} dayRange number of days\r\n * @param {jQuery|HTMLElement|*} jQueryRef reference to the jquery element\r\n */\r\n constructor(jQueryRef: JQuery, dayRange: number) {\r\n this._workingDayRange = dayRange - 1;\r\n\r\n let pickerHtml = '<label for=\"start-date\" style=\"width: 78px; display: inline-block; margin:5px;\">Start Date</label>' +\r\n '<input type=\"text\" readonly id=\"start-date\" class=\"date-pick\" style=\"width: 90px;\">' +\r\n '<br><label for=\"end-date\" style=\"width: 78px; display: inline-block; margin:5px;\">End Date</label>' +\r\n '<input type=\"text\" readonly id=\"end-date\" class=\"date-pick\" style=\"width: 90px;\">';\r\n\r\n jQueryRef.append(pickerHtml);\r\n\r\n this._$startDate = $('#start-date');\r\n this._$endDate = $('#end-date');\r\n\r\n this._$startDate.datepicker();\r\n this._$endDate.datepicker();\r\n\r\n this._startDate = null;\r\n this._endDate = null;\r\n\r\n let dte1 = new Date();\r\n dte1.setHours(0, 0, 0, 0);\r\n let dte2 = new Date(dte1.getTime());\r\n dte2.setDate(dte2.getDate() + dayRange);\r\n dte2.setHours(23, 59, 59, 0);\r\n this._maxDateRange = dte2.getTime() - dte1.getTime();\r\n\r\n let _this = this;\r\n\r\n //add event listeners\r\n this._$startDate.change(function () {\r\n _this.startDate = this.value;\r\n });\r\n\r\n this._$endDate.change(function () {\r\n _this.endDate = this.value;\r\n });\r\n\r\n // initialize\r\n this.endDate = new Date();\r\n }\r\n\r\n get startDate(): Date {\r\n return this._startDate;\r\n }\r\n\r\n /**\r\n *\r\n * @param val\r\n */\r\n set startDate(val: Date) {\r\n if (typeof val == 'string') {\r\n val = new Date(val as string);\r\n }\r\n\r\n this._startDate = val;\r\n this._startDate.setHours(0, 0, 0, 0);\r\n this._$startDate.val(this._startDate.toLocaleDateString());\r\n\r\n if (\r\n this.endDate == null ||\r\n this._endDate.getTime() - this._startDate.getTime() > this._maxDateRange ||\r\n this._endDate.getTime() - this._startDate.getTime() < 24 * 60 * 60 * 1000) {\r\n let tmpDate = new Date(this._startDate.getTime());\r\n tmpDate.setDate(tmpDate.getDate() + this._workingDayRange);\r\n this.endDate = new Date(tmpDate.getTime());\r\n }\r\n }\r\n\r\n get endDate(): Date {\r\n return this._endDate;\r\n }\r\n\r\n\r\n set endDate(val: Date) {\r\n if (typeof val == 'string') {\r\n val = new Date(val as string);\r\n }\r\n\r\n this._endDate = val;\r\n this._endDate.setHours(23, 59, 59, 0);\r\n this._$endDate.val(this._endDate.toLocaleDateString());\r\n if (this._startDate == null || this._endDate.getTime() - this.startDate.getTime() > this._maxDateRange || this._endDate.getTime() - this._startDate.getTime() < 24 * 60 * 60 * 1000) {\r\n let tmpDate = new Date(this._endDate.getTime());\r\n tmpDate.setDate(tmpDate.getDate() - this._workingDayRange);\r\n this.startDate = new Date(tmpDate.getTime());\r\n }\r\n }\r\n}\r\n\r\nnm.DayRange = DayRange;\r\n\r\nexport default DayRange;\r\n\r\n"]}
\ No newline at end of file
import ol = require('custom-ol');
export interface EsriResponse {
drawingInfo: {
renderer: EsriRenderer;
......@@ -36,7 +35,7 @@ export interface EsriSymbol {
* @returns {styleAndLegend} style and legend object
*/
export declare function makeFeatureServiceLegendAndSymbol(esriResponse: EsriResponse): {
style: ol.style.Style | ol.style.Style[] | ol.StyleFunction;
style: any;
legend: string;
};
/**
......
......@@ -21,7 +21,7 @@ export declare class MapInteractionBase {
* get reference to the ol map object
* @returns {ol.Map} the map object
*/
readonly map: ol.Map;
readonly map: any;
/**
* get if is initialized
* @returns {boolean} is initialized
......
/**
* Created by gavorhes on 10/3/2016.
*/
import ol = require('custom-ol');
export declare const proj4326: ol.proj.Projection;
export declare const proj3857: ol.proj.Projection;
export declare const proj3070: ol.proj.Projection;
export declare const proj4326: any;
export declare const proj3857: any;
export declare const proj3070: any;
import ol = require('custom-ol');
/**
* A style function based on properties and zoom level, wraps normal feature, resolution function
* @callback propertiesZoomStyle
......@@ -11,5 +10,5 @@ import ol = require('custom-ol');
* @param {propertiesZoomStyle|*} styleFunc - style function
* @returns {function|*} new function
*/
declare function propertiesZoomStyle(styleFunc: any): (feature: ol.Feature, resolution: any) => void;
declare function propertiesZoomStyle(styleFunc: any): (feature: any, resolution: any) => void;
export default propertiesZoomStyle;
......@@ -17,40 +17,38 @@
"typedoc": "typedoc --excludePrivate --mode file --out doc src",
"webpack": "webpack -d -w",
"webpack-prod": "webpack -p",
"tsc": "tsc -w",
"tsc": "node_modules\\.bin\\tsc -w",
"karma": "karma start"
},
"author": "TOPS Lab",
"license": "ISC",
"devDependencies": {
"@types/d3": "^4.5.0",
"@types/d3": "^4.7.0",
"@types/jasmine": "^2.5.43",
"@types/jquery": "^2.0.40",
"@types/jqueryui": "^1.11.32",
"chai": "^3.5.0",
"custom-ol": "git://github.com/glennvorhes/custom-ol.git#master",
"expect": "^1.20.1",
"custom-ol": "github:glennvorhes/custom-ol",
"jasmine": "^2.5.3",
"jasmine-core": "^2.5.2",
"jquery": "^3.1.1",
"jquery-layout": "^1.0.0",
"jquery-ui": "^1.12.1",
"karma": "^1.5.0",
"karma-chrome-launcher": "^2.0.0",
"karma-jasmine": "^1.1.0",
"karma-phantomjs-launcher": "^1.0.2",
"karma-sourcemap-loader": "^0.3.7",
"karma-typescript": "^2.1.7",
"karma-webpack": "^2.0.2",
"react": "^15.3.2",
"react-dom": "^15.3.2",
"source-map-loader": "^0.1.5",
"ts-loader": "^0.8.2",
"typescript": "^2.2.1"
"phantomjs-prebuilt": "^2.1.14",
"react": "^15.4.2",
"react-dom": "^15.4.2",
"ts-loader": "^2.0.1",
"typescript": "^2.2.1",
"webpack": "^2.2.1"
},
"repository": {
"type": "git",
"url": "https://github.com/glennvorhes/webmapsjs.git"
},
"dependencies": {
"@types/jquery": "^2.0.32",
"jquery": "2.2.3",
"jquery-layout": "1.0.0",
"jquery-ui": "1.10.5"
}
"dependencies": {}
}
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/*!*********************************!*\
!*** ./layers/LayerBaseSpec.js ***!
\*********************************/
/***/ function(module, exports) {
// /**
// * Created by glenn on 3/8/2017.
// */
//
// import {LayerBase, LayerBaseOptions} from '../../dist/layers/LayerBase';
//
// describe("Layer Base", function () {
//
// it('exists', function () {
// expect(LayerBase).toBeDefined()
//
// })
//
//
// });
/***/ }
/******/ ]);
//# sourceMappingURL=LayerBaseSpec.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap c5a0503caed534747b5e","webpack:///./layers/LayerBaseSpec.ts"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;ACtCA,OAAM;AACN,oCAAmC;AACnC,OAAM;AACN,GAAE;AACF,4EAA2E;AAC3E,GAAE;AACF,wCAAuC;AACvC,GAAE;AACF,kCAAiC;AACjC,2CAA0C;AAC1C,GAAE;AACF,UAAS;AACT,GAAE;AACF,GAAE;AACF,OAAM","file":"layers/LayerBaseSpec.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap c5a0503caed534747b5e","// /**\r\n// * Created by glenn on 3/8/2017.\r\n// */\r\n//\r\n// import {LayerBase, LayerBaseOptions} from '../../dist/layers/LayerBase';\r\n//\r\n// describe(\"Layer Base\", function () {\r\n//\r\n// it('exists', function () {\r\n// expect(LayerBase).toBeDefined()\r\n//\r\n// })\r\n//\r\n//\r\n// });\n\n\n// WEBPACK FOOTER //\n// ./layers/LayerBaseSpec.ts"],"sourceRoot":""}
\ No newline at end of file
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/*!*********************************************!*\
!*** ./layers/LayerBaseVectorGeoJonSpec.js ***!
\*********************************************/
/***/ function(module, exports) {
// /**
// * Created by glenn on 3/8/2017.
// */
//
// import {LayerBaseVectorGeoJson, LayerBaseVectorGeoJsonOptions} from '../../dist/layers/LayerBaseVectorGeoJson'
// // import {sample_segs} from '../data/sample_segments';
//
//
// import {proj3857, proj4326} from '../../dist/olHelpers/projections';
// import ol = require('custom-ol');
//
//
// describe("LayerBaseVeotorGeoJson", function () {
// let geoj: LayerBaseVectorGeoJson;
//
// beforeEach(() => {
// geoj = new LayerBaseVectorGeoJson('', {transform: {featureProjection: proj3857}});
// });
//
// // it('should exist', function () {
// // geoj = new LayerBaseVectorGeoJson('');
// // expect(LayerBaseVectorGeoJson).toBeDefined();
// // expect(geoj).toBeDefined();
// // console.log('here are cats')
// //
// // });
//
//
// it('should read features cams', function () {
// let format = new ol.format.GeoJSON();
//
// expect(false).toBe(true);
//
//
// });
//
// it('should read features cams1', function () {
// let format = new ol.format.GeoJSON();
//
// expect(false).toBe(true);
//
//
// });
//
//
// // it ('should load the sample segments', function () {
// // expect(geoj.features.length).toBe(0, 'length should be 0');
// // geoj.addFeatures(sample_segs);
// // geoj.addFeatures(sample_segs);
// // });
//
//
// });
/***/ }
/******/ ]);
//# sourceMappingURL=LayerBaseVectorGeoJonSpec.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap c5a0503caed534747b5e?7d3d","webpack:///./layers/LayerBaseVectorGeoJonSpec.ts"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;ACtCA,OAAM;AACN,oCAAmC;AACnC,OAAM;AACN,GAAE;AACF,kHAAiH;AACjH,2DAA0D;AAC1D,GAAE;AACF,GAAE;AACF,wEAAuE;AACvE,qCAAoC;AACpC,GAAE;AACF,GAAE;AACF,oDAAmD;AACnD,yCAAwC;AACxC,GAAE;AACF,0BAAyB;AACzB,8FAA6F;AAC7F,WAAU;AACV,GAAE;AACF,2CAA0C;AAC1C,qDAAoD;AACpD,4DAA2D;AAC3D,0CAAyC;AACzC,2CAA0C;AAC1C,UAAS;AACT,cAAa;AACb,GAAE;AACF,GAAE;AACF,qDAAoD;AACpD,iDAAgD;AAChD,GAAE;AACF,qCAAoC;AACpC,GAAE;AACF,GAAE;AACF,WAAU;AACV,GAAE;AACF,sDAAqD;AACrD,iDAAgD;AAChD,GAAE;AACF,qCAAoC;AACpC,GAAE;AACF,GAAE;AACF,WAAU;AACV,GAAE;AACF,GAAE;AACF,+DAA8D;AAC9D,yEAAwE;AACxE,4CAA2C;AAC3C,4CAA2C;AAC3C,cAAa;AACb,GAAE;AACF,GAAE;AACF,OAAM","file":"layers/LayerBaseVectorGeoJonSpec.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap c5a0503caed534747b5e","// /**\r\n// * Created by glenn on 3/8/2017.\r\n// */\r\n//\r\n// import {LayerBaseVectorGeoJson, LayerBaseVectorGeoJsonOptions} from '../../dist/layers/LayerBaseVectorGeoJson'\r\n// // import {sample_segs} from '../data/sample_segments';\r\n//\r\n//\r\n// import {proj3857, proj4326} from '../../dist/olHelpers/projections';\r\n// import ol = require('custom-ol');\r\n//\r\n//\r\n// describe(\"LayerBaseVeotorGeoJson\", function () {\r\n// let geoj: LayerBaseVectorGeoJson;\r\n//\r\n// beforeEach(() => {\r\n// geoj = new LayerBaseVectorGeoJson('', {transform: {featureProjection: proj3857}});\r\n// });\r\n//\r\n// // it('should exist', function () {\r\n// // geoj = new LayerBaseVectorGeoJson('');\r\n// // expect(LayerBaseVectorGeoJson).toBeDefined();\r\n// // expect(geoj).toBeDefined();\r\n// // console.log('here are cats')\r\n// //\r\n// // });\r\n//\r\n//\r\n// it('should read features cams', function () {\r\n// let format = new ol.format.GeoJSON();\r\n//\r\n// expect(false).toBe(true);\r\n//\r\n//\r\n// });\r\n//\r\n// it('should read features cams1', function () {\r\n// let format = new ol.format.GeoJSON();\r\n//\r\n// expect(false).toBe(true);\r\n//\r\n//\r\n// });\r\n//\r\n//\r\n// // it ('should load the sample segments', function () {\r\n// // expect(geoj.features.length).toBe(0, 'length should be 0');\r\n// // geoj.addFeatures(sample_segs);\r\n// // geoj.addFeatures(sample_segs);\r\n// // });\r\n//\r\n//\r\n// });\n\n\n// WEBPACK FOOTER //\n// ./layers/LayerBaseVectorGeoJonSpec.ts"],"sourceRoot":""}
\ No newline at end of file
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/*!*********************!*\
!*** ./newSpec2.js ***!
\*********************/
/***/ function(module, exports) {
/**
* Created by glenn on 3/8/2017.
*/
// var d = require('custom-ol')
describe('a cat', function () {
it('should eat', function () {
expect(1).toBeGreaterThan(0);
});
it('my car', function () {
console.log('here');
console.log('here');
expect(1).toBeGreaterThan(0);
expect(1).toBeGreaterThan(1);
});
});
/***/ }
/******/ ]);
//# sourceMappingURL=newSpec2.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap c5a0503caed534747b5e?7d3d**","webpack:///./newSpec2.ts"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;ACtCA;;IAEG;AAIH,gCAA+B;AAE/B,SAAQ,CAAC,OAAO,EAAE;KAEd,EAAE,CAAC,YAAY,EAAE;SAEb,MAAM,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;KAChC,CAAC,CAAC,CAAC;KAEH,EAAE,CAAC,QAAQ,EAAE;SACT,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;SACpB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;SACrB,MAAM,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;SAC7B,MAAM,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;KAChC,CAAC,CAAC;AACN,EAAC,CAAC,CAAC","file":"newSpec2.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap c5a0503caed534747b5e","/**\r\n * Created by glenn on 3/8/2017.\r\n */\r\n\r\n\r\n\r\n// var d = require('custom-ol')\r\n\r\ndescribe('a cat', function () {\r\n\r\n it('should eat', function () {\r\n\r\n expect(1).toBeGreaterThan(0)\r\n });\r\n\r\n it('my car', function () {\r\n console.log('here');\r\n console.log('here');\r\n expect(1).toBeGreaterThan(0);\r\n expect(1).toBeGreaterThan(1);\r\n })\r\n});\n\n\n// WEBPACK FOOTER //\n// ./newSpec2.ts"],"sourceRoot":""}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment