From ee391f3e14dd30a99c95b4d657830384b766075d Mon Sep 17 00:00:00 2001 From: Kevin DeLoach Date: Mon, 12 Dec 2016 12:33:47 -0500 Subject: [PATCH] Integrate map_utils widget into framework core Fixes various UX issues with map_utils plugin by integrating it into the framework core. Changes: * Replace custom dropdown with Bootstrap widget * Merge CSS, templates, and locale files * Simplify map_utils commands Connects #734 Connects #738 --- src/GeositeFramework/Views/Home/Index.cshtml | 45 ++++++- src/GeositeFramework/css/main.css | 11 +- .../measure/style.css => css/measure.css} | 2 +- src/GeositeFramework/js/Map.js | 13 ++ .../js/widgets/map_utils/export/main.js | 10 +- .../map_utils/full_extent/locales/en.json | 4 - .../map_utils/full_extent/locales/es.json | 4 - .../js/widgets/map_utils/full_extent/main.js | 41 ++---- .../js/widgets/map_utils/main.js | 125 ++++-------------- .../widgets/map_utils/measure/AgsMeasure.js | 15 +-- .../widgets/map_utils/measure/locales/en.json | 9 -- .../widgets/map_utils/measure/locales/es.json | 9 -- .../js/widgets/map_utils/measure/main.js | 38 ++---- .../widgets/map_utils/measure/templates.html | 28 ---- .../js/widgets/map_utils/plugin.json | 9 -- .../js/widgets/map_utils/share/main.js | 12 +- .../js/widgets/map_utils/style.css | 46 ------- .../js/widgets/map_utils/templates.html | 14 -- src/GeositeFramework/locales/en.json | 10 +- src/GeositeFramework/locales/es.json | 10 +- 20 files changed, 141 insertions(+), 314 deletions(-) rename src/GeositeFramework/{js/widgets/map_utils/measure/style.css => css/measure.css} (98%) delete mode 100644 src/GeositeFramework/js/widgets/map_utils/full_extent/locales/en.json delete mode 100644 src/GeositeFramework/js/widgets/map_utils/full_extent/locales/es.json delete mode 100644 src/GeositeFramework/js/widgets/map_utils/measure/locales/en.json delete mode 100644 src/GeositeFramework/js/widgets/map_utils/measure/locales/es.json delete mode 100644 src/GeositeFramework/js/widgets/map_utils/measure/templates.html delete mode 100644 src/GeositeFramework/js/widgets/map_utils/plugin.json delete mode 100644 src/GeositeFramework/js/widgets/map_utils/style.css delete mode 100644 src/GeositeFramework/js/widgets/map_utils/templates.html diff --git a/src/GeositeFramework/Views/Home/Index.cshtml b/src/GeositeFramework/Views/Home/Index.cshtml index 91ae38b2..9357e6b4 100644 --- a/src/GeositeFramework/Views/Home/Index.cshtml +++ b/src/GeositeFramework/Views/Home/Index.cshtml @@ -87,6 +87,7 @@ + @@ -199,7 +200,24 @@
-
+
+ +
+ +
+ +
+
@@ -520,6 +538,31 @@
+ + + +