From 43c1f27485bd2ca132c04991a946215f2709e35c Mon Sep 17 00:00:00 2001 From: stdavis Date: Tue, 19 Jun 2018 12:42:28 -0600 Subject: [PATCH] Implement map-tools/extentRouter Closes #202 --- _src/app/App.js | 4 ++++ package-lock.json | 6 +++--- package.json | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/_src/app/App.js b/_src/app/App.js index bd42be15..f3ddb098 100644 --- a/_src/app/App.js +++ b/_src/app/App.js @@ -23,6 +23,7 @@ define([ 'layer-selector', + 'map-tools/extentRouter', 'map-tools/MapView', 'sherlock/providers/WebAPI', @@ -54,6 +55,7 @@ define([ LayerSelector, + extentRouter, AGRCMapView, WebAPI, @@ -215,6 +217,8 @@ define([ container: this.mapDiv }); + extentRouter(this.mapView); + this.agrcMapView = new AGRCMapView(this.mapView); const center = localStorage.getItem(this.localStorageKeys.center); diff --git a/package-lock.json b/package-lock.json index 53be8c41..14be6a96 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,9 +30,9 @@ } }, "@agrc/map-tools": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@agrc/map-tools/-/map-tools-2.0.2.tgz", - "integrity": "sha512-DMCbY/NUOQ1RVzd8zygAZ4zTjj5gtecTaGr10K+P0aFof521N/J3ohUI8L+TFBAvlA1cYc9GaKb/7V4ZdRPJMQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@agrc/map-tools/-/map-tools-2.1.0.tgz", + "integrity": "sha512-5JzBA6HWp7eY2ZN9S6IwAiOAn9UKEGoJzdMG7182Nzb9bZ3Jqa0fXQV+OGjOJ/TZ4s7t1FqhGaX+0FAbrUM4Bg==", "requires": { "arcgis-js-api": "^4.7.x", "spinkit": "1.2.5" diff --git a/package.json b/package.json index cf4b9871..554174ee 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@agrc/dart-board": "2.0.4", "@agrc/helpers": "1.0.1", "@agrc/layer-selector": "2.0.2", - "@agrc/map-tools": "2.0.2", + "@agrc/map-tools": "2.1.0", "@agrc/sherlock": "2.0.2", "arcgis-js-api": "4.7.2", "bootstrap": "3.3.6",