@corpsmap/corpsmap 4.0.36 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/README.md +33 -0
  2. package/dist/corpsmap.css +1 -0
  3. package/dist/corpsmap.es.js +63856 -0
  4. package/dist/corpsmap.umd.js +384 -0
  5. package/dist/vite.svg +1 -0
  6. package/package.json +74 -32
  7. package/src/App.css +42 -0
  8. package/src/application-bundles/_create-container-bundle.js +102 -0
  9. package/src/application-bundles/api-bundle.js +76 -0
  10. package/src/application-bundles/basic-toolbar-bundle.js +57 -0
  11. package/src/application-bundles/config-bundle.js +38 -0
  12. package/src/application-bundles/create-ol-map-bundle.jsx +278 -0
  13. package/src/application-bundles/export-bundle.js +125 -0
  14. package/src/application-bundles/identify-bundle.js +119 -0
  15. package/src/application-bundles/index.js +53 -0
  16. package/src/application-bundles/map-basemap-bundle.js +73 -0
  17. package/src/application-bundles/map-core-bundle.js +25 -0
  18. package/src/application-bundles/map-drawing-bundle.js +120 -0
  19. package/src/application-bundles/map-interaction-bundle.js +50 -0
  20. package/src/application-bundles/map-layers-bundle.js +816 -0
  21. package/src/application-bundles/map-proj-bundle.js +144 -0
  22. package/src/application-bundles/map-view-bundle.jsx +334 -0
  23. package/src/application-bundles/modal-window-bundle.js +5 -0
  24. package/src/application-bundles/notification-bundle.js +56 -0
  25. package/src/application-bundles/plugin-bundle.js +180 -0
  26. package/src/application-bundles/primary-panel-bundle.js +85 -0
  27. package/src/application-bundles/search-bundle.js +122 -0
  28. package/src/application-bundles/south-region-bundle.js +96 -0
  29. package/src/application-bundles/theme-bundle.js +45 -0
  30. package/src/application-bundles/vertical-layout-bundle.js +88 -0
  31. package/src/application-bundles/viewport-bundle.js +43 -0
  32. package/src/application-bundles/window-location-bundle.js +90 -0
  33. package/src/application-containers/basic-toolbar.jsx +24 -0
  34. package/src/application-containers/corpsmap.jsx +91 -0
  35. package/src/application-containers/left-sidebar.jsx +43 -0
  36. package/src/application-containers/lower-right-toolbar.jsx +29 -0
  37. package/src/application-containers/map.jsx +57 -0
  38. package/src/application-containers/modal-window.jsx +34 -0
  39. package/src/application-containers/north-region.jsx +26 -0
  40. package/src/application-containers/notification-pane.jsx +37 -0
  41. package/src/application-containers/notification-quadrant.jsx +20 -0
  42. package/src/application-containers/notification.jsx +91 -0
  43. package/src/application-containers/primary-panel.jsx +94 -0
  44. package/src/application-containers/right-sidebar.jsx +44 -0
  45. package/src/application-containers/south-region-tab.jsx +60 -0
  46. package/src/application-containers/south-region.jsx +75 -0
  47. package/src/application-containers/upper-right-toolbar.jsx +28 -0
  48. package/src/application-controls/basic-toolbar-button.jsx +124 -0
  49. package/src/application-controls/basic-toolbar-menu-divider.jsx +11 -0
  50. package/src/application-controls/basic-toolbar-menu-item.jsx +91 -0
  51. package/src/application-controls/basic-toolbar-menu-up.jsx +13 -0
  52. package/src/application-controls/basic-toolbar-menu.jsx +13 -0
  53. package/src/application-controls/basic-toolbar-submenu.jsx +14 -0
  54. package/src/application-controls/index.jsx +35 -0
  55. package/src/application-controls/loading-indicator.jsx +19 -0
  56. package/src/application-controls/search-input.jsx +55 -0
  57. package/src/application-controls/search-results-list-item.jsx +50 -0
  58. package/src/application-controls/search-results-list.jsx +19 -0
  59. package/src/application-controls/sidebar-button.jsx +69 -0
  60. package/src/application-controls/sidebar-panel-opener.jsx +63 -0
  61. package/src/application-controls/tree-list-folder.jsx +46 -0
  62. package/src/application-controls/tree-list-item.jsx +83 -0
  63. package/src/application-controls/tree-list.jsx +35 -0
  64. package/src/application-controls/tree-view.jsx +42 -0
  65. package/src/application-exports/map-provider.jsx +122 -0
  66. package/src/assets/react.svg +1 -0
  67. package/src/config/default-config.js +593 -0
  68. package/src/core-plugins/add-data/add-data-button.jsx +34 -0
  69. package/src/core-plugins/add-data/add-geojson.jsx +47 -0
  70. package/src/core-plugins/add-data/add-kmlfile.jsx +46 -0
  71. package/src/core-plugins/add-data/add-shapefile.jsx +47 -0
  72. package/src/core-plugins/add-data/bundle.js +226 -0
  73. package/src/core-plugins/add-data/index.js +15 -0
  74. package/src/core-plugins/basemap-switcher/basemap-switcher-button.jsx +18 -0
  75. package/src/core-plugins/basemap-switcher/basemap-switcher-list-item.jsx +48 -0
  76. package/src/core-plugins/basemap-switcher/basemap-switcher-list.jsx +37 -0
  77. package/src/core-plugins/basemap-switcher/index.js +13 -0
  78. package/src/core-plugins/bookmarks/bookmark-button.jsx +18 -0
  79. package/src/core-plugins/bookmarks/bookmark-list-item.jsx +79 -0
  80. package/src/core-plugins/bookmarks/bookmark-list.jsx +31 -0
  81. package/src/core-plugins/bookmarks/bookmark-panel.jsx +191 -0
  82. package/src/core-plugins/bookmarks/bundle.js +92 -0
  83. package/src/core-plugins/bookmarks/index.js +15 -0
  84. package/src/core-plugins/catalog/bundle.js +109 -0
  85. package/src/core-plugins/catalog/catalog-button.jsx +33 -0
  86. package/src/core-plugins/catalog/catalog-error-item.jsx +14 -0
  87. package/src/core-plugins/catalog/catalog-list-item-loader.jsx +12 -0
  88. package/src/core-plugins/catalog/catalog-list-item.jsx +118 -0
  89. package/src/core-plugins/catalog/catalog-list.jsx +78 -0
  90. package/src/core-plugins/catalog/catalog-modal-window.jsx +100 -0
  91. package/src/core-plugins/catalog/index.js +15 -0
  92. package/src/core-plugins/change-log/bundle.js +180 -0
  93. package/src/core-plugins/change-log/change-log-button.jsx +40 -0
  94. package/src/core-plugins/change-log/change-log-modal.jsx +190 -0
  95. package/src/core-plugins/change-log/index.js +15 -0
  96. package/src/core-plugins/change-log/select-district.jsx +73 -0
  97. package/src/core-plugins/contact-form/bundle.js +239 -0
  98. package/src/core-plugins/contact-form/index.js +17 -0
  99. package/src/core-plugins/contact-form/question-button.jsx +36 -0
  100. package/src/core-plugins/contact-form/question-modal.jsx +215 -0
  101. package/src/core-plugins/coordinate-display/bundle.jsx +269 -0
  102. package/src/core-plugins/coordinate-display/coordinate-display-bar.jsx +66 -0
  103. package/src/core-plugins/coordinate-display/coordinate-display-proj-item.jsx +60 -0
  104. package/src/core-plugins/coordinate-display/coordinate-display-settings.jsx +173 -0
  105. package/src/core-plugins/coordinate-display/coordinate-interaction-bar.jsx +60 -0
  106. package/src/core-plugins/coordinate-display/coordinate-lat-lon-input.jsx +35 -0
  107. package/src/core-plugins/coordinate-display/coordinate-popup.jsx +27 -0
  108. package/src/core-plugins/coordinate-display/index.js +20 -0
  109. package/src/core-plugins/draw-tools/create-draw-bundle.js +242 -0
  110. package/src/core-plugins/draw-tools/draw-button.jsx +204 -0
  111. package/src/core-plugins/draw-tools/draw-label-bundle.js +116 -0
  112. package/src/core-plugins/draw-tools/draw-modify-bundle.js +156 -0
  113. package/src/core-plugins/draw-tools/draw-save-bundle.jsx +181 -0
  114. package/src/core-plugins/draw-tools/draw-styles.js +110 -0
  115. package/src/core-plugins/draw-tools/draw-tool-item.jsx +67 -0
  116. package/src/core-plugins/draw-tools/index.js +34 -0
  117. package/src/core-plugins/editor/bundle.js +472 -0
  118. package/src/core-plugins/editor/date-editor.js +63 -0
  119. package/src/core-plugins/editor/date-formatter.js +17 -0
  120. package/src/core-plugins/editor/editor-base.js +29 -0
  121. package/src/core-plugins/editor/editor-button.js +224 -0
  122. package/src/core-plugins/editor/editor-table.js +151 -0
  123. package/src/core-plugins/editor/index.js +15 -0
  124. package/src/core-plugins/editor/number-editor.js +57 -0
  125. package/src/core-plugins/editor/string-editor.js +42 -0
  126. package/src/core-plugins/geocoder/bundle.jsx +186 -0
  127. package/src/core-plugins/geocoder/index.js +15 -0
  128. package/src/core-plugins/geocoder/overlay.jsx +30 -0
  129. package/src/core-plugins/geocoder/search-bar.js copy.save +123 -0
  130. package/src/core-plugins/geocoder/search-bar.jsx +121 -0
  131. package/src/core-plugins/identify/bundle.jsx +709 -0
  132. package/src/core-plugins/identify/identify-buffer-section.jsx +52 -0
  133. package/src/core-plugins/identify/identify-buffer-settings.jsx +48 -0
  134. package/src/core-plugins/identify/identify-button.jsx +100 -0
  135. package/src/core-plugins/identify/identify-details-table.jsx +121 -0
  136. package/src/core-plugins/identify/identify-details.js +69 -0
  137. package/src/core-plugins/identify/identify-popup.jsx +136 -0
  138. package/src/core-plugins/identify/identify-sidebar-list-item.jsx +106 -0
  139. package/src/core-plugins/identify/identify-sidebar-list.jsx +63 -0
  140. package/src/core-plugins/identify/identify-sidebar.jsx +103 -0
  141. package/src/core-plugins/identify/identify-table-cell.jsx +49 -0
  142. package/src/core-plugins/identify/identify-table.jsx +319 -0
  143. package/src/core-plugins/identify/index.js +27 -0
  144. package/src/core-plugins/identify/listeners/arcgis.js +158 -0
  145. package/src/core-plugins/identify/listeners/geojson.jsx +164 -0
  146. package/src/core-plugins/identify/listeners/raster.js +89 -0
  147. package/src/core-plugins/identify/listeners/vector.jsx +106 -0
  148. package/src/core-plugins/identify-arcgis-rest/bundle.js +169 -0
  149. package/src/core-plugins/identify-arcgis-rest/index.js +10 -0
  150. package/src/core-plugins/identify-cm/bundle.js +82 -0
  151. package/src/core-plugins/identify-cm/index.js +10 -0
  152. package/src/core-plugins/identify-geojson/bundle.js +164 -0
  153. package/src/core-plugins/identify-geojson/index.js +10 -0
  154. package/src/core-plugins/identify-raster/bundle.js +89 -0
  155. package/src/core-plugins/identify-raster/index.js +10 -0
  156. package/src/core-plugins/identify-vector/bundle.jsx +135 -0
  157. package/src/core-plugins/identify-vector/index.js +10 -0
  158. package/src/core-plugins/identify-wms/bundle.js +138 -0
  159. package/src/core-plugins/identify-wms/index.js +10 -0
  160. package/src/core-plugins/legend/bundle.js +1044 -0
  161. package/src/core-plugins/legend/index.js +17 -0
  162. package/src/core-plugins/legend/legend-button.jsx +18 -0
  163. package/src/core-plugins/legend/legend-header.jsx +43 -0
  164. package/src/core-plugins/legend/legend-item-multiple.jsx +32 -0
  165. package/src/core-plugins/legend/legend-item.jsx +20 -0
  166. package/src/core-plugins/legend/legend-panel.jsx +73 -0
  167. package/src/core-plugins/login/index.js +13 -0
  168. package/src/core-plugins/login/login-button.jsx +49 -0
  169. package/src/core-plugins/map-loading-indicator/bundle.js +31 -0
  170. package/src/core-plugins/map-loading-indicator/index.js +17 -0
  171. package/src/core-plugins/map-loading-indicator/loading-indicator.jsx +30 -0
  172. package/src/core-plugins/measure-tools/bundle.js +286 -0
  173. package/src/core-plugins/measure-tools/index.js +15 -0
  174. package/src/core-plugins/measure-tools/measure-options.jsx +89 -0
  175. package/src/core-plugins/measure-tools/measure-tools-button.jsx +129 -0
  176. package/src/core-plugins/measure-tools/measure-utils.js +76 -0
  177. package/src/core-plugins/permalink/bundle.js +57 -0
  178. package/src/core-plugins/permalink/index.js +15 -0
  179. package/src/core-plugins/permalink/permalink-button.jsx +38 -0
  180. package/src/core-plugins/permalink/permalink-modal.jsx +67 -0
  181. package/src/core-plugins/print-map/bundle.jsx +316 -0
  182. package/src/core-plugins/print-map/button.jsx +17 -0
  183. package/src/core-plugins/print-map/index.js +17 -0
  184. package/src/core-plugins/resources/bundle.js +96 -0
  185. package/src/core-plugins/resources/index.js +15 -0
  186. package/src/core-plugins/resources/resources-button.jsx +40 -0
  187. package/src/core-plugins/resources/resources-modal.jsx +151 -0
  188. package/src/core-plugins/rotate-north/index.js +13 -0
  189. package/src/core-plugins/rotate-north/rotate-north-button.jsx +38 -0
  190. package/src/core-plugins/theme-switcher/bundle.js +16 -0
  191. package/src/core-plugins/theme-switcher/index.js +15 -0
  192. package/src/core-plugins/theme-switcher/theme-list-item.jsx +25 -0
  193. package/src/core-plugins/theme-switcher/theme-list.jsx +28 -0
  194. package/src/core-plugins/theme-switcher/theme-switcher-button.jsx +18 -0
  195. package/src/core-plugins/theme-switcher/themes.js +121 -0
  196. package/src/core-plugins/three-d/index.js +13 -0
  197. package/src/core-plugins/three-d/three-d-button.jsx +44 -0
  198. package/src/core-plugins/tree-view/boundary-drop-target.jsx +42 -0
  199. package/src/core-plugins/tree-view/bundle.js +513 -0
  200. package/src/core-plugins/tree-view/dataset-info-modal.jsx +141 -0
  201. package/src/core-plugins/tree-view/dataset-legend.jsx +122 -0
  202. package/src/core-plugins/tree-view/defaults-container.jsx +27 -0
  203. package/src/core-plugins/tree-view/download-bundle.js +156 -0
  204. package/src/core-plugins/tree-view/favorites-container.jsx +27 -0
  205. package/src/core-plugins/tree-view/index.js +25 -0
  206. package/src/core-plugins/tree-view/layer-subpanel/defaults-toggle.jsx +28 -0
  207. package/src/core-plugins/tree-view/layer-subpanel/download-layer.jsx +54 -0
  208. package/src/core-plugins/tree-view/layer-subpanel/favorites-toggle.jsx +28 -0
  209. package/src/core-plugins/tree-view/layer-subpanel/label-toggle.jsx +39 -0
  210. package/src/core-plugins/tree-view/layer-subpanel/layer-subpanel.jsx +179 -0
  211. package/src/core-plugins/tree-view/layer-subpanel/natick-rgb-options.jsx +66 -0
  212. package/src/core-plugins/tree-view/layer-subpanel/natick-rgb.jsx +112 -0
  213. package/src/core-plugins/tree-view/layer-subpanel/opacity-slider.jsx +51 -0
  214. package/src/core-plugins/tree-view/layer-subpanel/remove-layer.jsx +75 -0
  215. package/src/core-plugins/tree-view/tree-list-container.jsx +22 -0
  216. package/src/core-plugins/tree-view/tree-list-item-dataset.jsx +174 -0
  217. package/src/core-plugins/tree-view/tree-list-item-folder.jsx +161 -0
  218. package/src/core-plugins/tree-view/tree-list-item.jsx +35 -0
  219. package/src/core-plugins/tree-view/tree-list.jsx +37 -0
  220. package/src/core-plugins/tree-view/tree-view-button.jsx +18 -0
  221. package/src/core-plugins/tree-view/tree-view-panel.jsx +139 -0
  222. package/src/core-plugins/tree-view/tree-view-toolbar/add-all.jsx +28 -0
  223. package/src/core-plugins/tree-view/tree-view-toolbar/defaults.jsx +40 -0
  224. package/src/core-plugins/tree-view/tree-view-toolbar/favorites.jsx +40 -0
  225. package/src/core-plugins/tree-view/tree-view-toolbar/remove-all.jsx +28 -0
  226. package/src/core-plugins/tree-view/tree-view-toolbar/toggle-expand.jsx +47 -0
  227. package/src/core-plugins/tree-view/tree-view-toolbar/toggle-filter.jsx +39 -0
  228. package/src/core-plugins/vector-search/bundle.js +96 -0
  229. package/src/core-plugins/vector-search/index.js +10 -0
  230. package/src/core-plugins/zoom-home/bundle.js +77 -0
  231. package/src/core-plugins/zoom-home/index.js +19 -0
  232. package/src/core-plugins/zoom-home/zoom-home-button.jsx +57 -0
  233. package/src/core-plugins/zoom-in-out/index.js +23 -0
  234. package/src/core-plugins/zoom-in-out/zoom-in-button.jsx +28 -0
  235. package/src/core-plugins/zoom-in-out/zoom-out-button.jsx +28 -0
  236. package/src/core-plugins/zoom-level/bundle.js +35 -0
  237. package/src/core-plugins/zoom-level/index.js +17 -0
  238. package/src/core-plugins/zoom-level/zoom-indicator.jsx +34 -0
  239. package/src/core-plugins/zoom-to-box/bundle.js +80 -0
  240. package/src/core-plugins/zoom-to-box/index.jsx +15 -0
  241. package/src/core-plugins/zoom-to-box/zoom-to-box-button.jsx +53 -0
  242. package/src/css/_deprecated_maki/css/maki.css +304 -0
  243. package/src/css/_deprecated_maki/fonts/maki.eot +0 -0
  244. package/src/css/_deprecated_maki/fonts/maki.svg +98 -0
  245. package/src/css/_deprecated_maki/fonts/maki.ttf +0 -0
  246. package/src/css/_deprecated_maki/fonts/maki.woff +0 -0
  247. package/src/css/bg-colors.css +121 -0
  248. package/src/css/cm-icons/css/cm-icons.css +90 -0
  249. package/src/css/cm-icons/fonts/cm.eot +0 -0
  250. package/src/css/cm-icons/fonts/cm.svg +27 -0
  251. package/src/css/cm-icons/fonts/cm.ttf +0 -0
  252. package/src/css/cm-icons/fonts/cm.woff +0 -0
  253. package/src/css/corpsmap-namespaced.css +9505 -0
  254. package/src/css/corpsmap.css +10178 -0
  255. package/src/css/loading-indicator.css +109 -0
  256. package/src/css/mapskin/OFL.txt +94 -0
  257. package/src/css/mapskin/css/mapskin.css +815 -0
  258. package/src/css/mapskin/css/mapskin.min.css +8 -0
  259. package/src/css/mapskin/fonts/mapskin.eot +0 -0
  260. package/src/css/mapskin/fonts/mapskin.svg +282 -0
  261. package/src/css/mapskin/fonts/mapskin.ttf +0 -0
  262. package/src/css/mapskin/fonts/mapskin.woff +0 -0
  263. package/src/css/mdi/.github/ISSUE_TEMPLATE.md +3 -0
  264. package/src/css/mdi/README.md +24 -0
  265. package/src/css/mdi/bower.json +22 -0
  266. package/src/css/mdi/css/materialdesignicons.css +18654 -0
  267. package/src/css/mdi/css/materialdesignicons.css.map +16 -0
  268. package/src/css/mdi/css/materialdesignicons.min.css +3 -0
  269. package/src/css/mdi/css/materialdesignicons.min.css.map +16 -0
  270. package/src/css/mdi/fonts/materialdesignicons-webfont.eot +0 -0
  271. package/src/css/mdi/fonts/materialdesignicons-webfont.ttf +0 -0
  272. package/src/css/mdi/fonts/materialdesignicons-webfont.woff +0 -0
  273. package/src/css/mdi/fonts/materialdesignicons-webfont.woff2 +0 -0
  274. package/src/css/mdi/license.md +97 -0
  275. package/src/css/mdi/package.json +37 -0
  276. package/src/css/mdi/preview.html +717 -0
  277. package/src/css/mdi/scss/_animated.scss +27 -0
  278. package/src/css/mdi/scss/_core.scss +10 -0
  279. package/src/css/mdi/scss/_extras.scss +65 -0
  280. package/src/css/mdi/scss/_functions.scss +20 -0
  281. package/src/css/mdi/scss/_icons.scss +10 -0
  282. package/src/css/mdi/scss/_path.scss +10 -0
  283. package/src/css/mdi/scss/_variables.scss +4606 -0
  284. package/src/css/mdi/scss/materialdesignicons.scss +8 -0
  285. package/src/css/navigation.css +174 -0
  286. package/src/css/parse-css.js +26 -0
  287. package/src/css/reset.css +48 -0
  288. package/src/index.css +68 -0
  289. package/src/index.jsx +113 -0
  290. package/src/main.jsx +3 -0
  291. package/src/openlayers-utils/format-utilities.js +178 -0
  292. package/src/openlayers-utils/interaction-creator.js +31 -0
  293. package/src/openlayers-utils/layer-utilities.js +309 -0
  294. package/src/openlayers-utils/map-utils.js +25 -0
  295. package/src/openlayers-utils/resource-utilities.js +38 -0
  296. package/src/openlayers-utils/vector-style.js +131 -0
  297. package/src/utils/cache.js +6 -0
  298. package/src/utils/check-webgl.js +6 -0
  299. package/src/utils/error-boundary.js +26 -0
  300. package/src/utils/load-plugins.js +32 -0
  301. package/src/utils/load-plugins.test.js +36 -0
  302. package/src/utils/plugin-region.jsx +26 -0
  303. package/src/utils/redux-bundler-react.jsx +69 -0
  304. package/src/utils/scale-to-zoom-level.js +37 -0
  305. package/src/utils/vector-styles.js +7 -0
  306. package/.babelrc +0 -7
  307. package/config/basemaps.js +0 -22
  308. package/css/corpsmap.css +0 -7982
  309. package/index.js +0 -5
  310. package/lib/dev.js +0 -41440
  311. package/lib/prod.js +0 -41406
  312. package/rollup.config.js +0 -30
  313. package/src/bundles/DEPRECATE_map-view-bundle.js +0 -34
  314. package/src/bundles/_template-bundle-creator.js +0 -49
  315. package/src/bundles/create-basemap-bundle-old.js +0 -107
  316. package/src/bundles/create-basemap-bundle.js +0 -133
  317. package/src/bundles/create-ol-map-bundle.js +0 -166
  318. package/src/bundles/create-ol-view-bundle.js +0 -79
  319. package/src/bundles/map-basemap-bundle.js +0 -42
  320. package/src/bundles/map-bundle.js +0 -90
  321. package/src/bundles/map-interaction-bundle.js +0 -57
  322. package/src/bundles/map-measure-bundle.js +0 -61
  323. package/src/components/BasemapSwitcherLight/BasemapMenu.js +0 -26
  324. package/src/components/BasemapSwitcherLight/BasemapMenuItem.js +0 -31
  325. package/src/components/BasemapSwitcherLight/index.js +0 -25
  326. package/src/components/Control-Regions/BtnContainer.js +0 -20
  327. package/src/components/Control-Regions/Right.js +0 -30
  328. package/src/components/Control-Regions/Top.js +0 -19
  329. package/src/components/Control-Regions/index.js +0 -4
  330. package/src/components/LayerTree/index.js +0 -10
  331. package/src/components/Map.js +0 -56
  332. package/src/components/MeasureTool/Content.js +0 -53
  333. package/src/components/MeasureTool/index.js +0 -169
  334. package/src/components/MeasureTool/measure-utils.js +0 -69
  335. package/src/components/Zoom/index.js +0 -48
  336. package/src/components/index.js +0 -3
  337. package/src/index.js +0 -10
@@ -0,0 +1,23 @@
1
+ import ZoomInButton from "./zoom-in-button";
2
+ import ZoomOutButton from "./zoom-out-button";
3
+
4
+ const plugin = {
5
+ pluginName: "ZoomButtons",
6
+ enabled: true,
7
+ components: [
8
+ {
9
+ component: ZoomInButton,
10
+ region: "right-sidebar-top",
11
+ sortOrder: 30,
12
+ },
13
+ {
14
+ component: ZoomOutButton,
15
+ region: "right-sidebar-top",
16
+ sortOrder: 31,
17
+ },
18
+ ],
19
+ };
20
+
21
+ export default plugin;
22
+
23
+ //debugger
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ import { connect } from "../../utils/redux-bundler-react";
3
+ import { SidebarButton } from "../../application-controls/index";
4
+
5
+ class ZoomInButton extends React.Component {
6
+ constructor(props) {
7
+ super(props);
8
+ this.handleClick = this.handleClick.bind(this);
9
+ }
10
+
11
+ handleClick() {
12
+ const { doZoomIn } = this.props;
13
+ doZoomIn();
14
+ }
15
+
16
+ render() {
17
+ return (
18
+ <SidebarButton
19
+ iconClass="mdi mdi-plus"
20
+ label="Zoom In"
21
+ title="Zoom In"
22
+ onClick={this.handleClick}
23
+ />
24
+ );
25
+ }
26
+ }
27
+
28
+ export default connect("doZoomIn", ZoomInButton);
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ import { connect } from "../../utils/redux-bundler-react";
3
+ import { SidebarButton } from "../../application-controls/index";
4
+
5
+ class ZoomOutButton extends React.Component {
6
+ constructor(props) {
7
+ super(props);
8
+ this.handleClick = this.handleClick.bind(this);
9
+ }
10
+
11
+ handleClick() {
12
+ const { doZoomOut } = this.props;
13
+ doZoomOut();
14
+ }
15
+
16
+ render() {
17
+ return (
18
+ <SidebarButton
19
+ iconClass="mdi mdi-minus"
20
+ label="Zoom Out"
21
+ title="Zoom Out"
22
+ onClick={this.handleClick}
23
+ />
24
+ );
25
+ }
26
+ }
27
+
28
+ export default connect("doZoomOut", ZoomOutButton);
@@ -0,0 +1,35 @@
1
+ export default {
2
+ name: "zoomLevel",
3
+
4
+ getReducer: () => {
5
+ const initialData = {
6
+ zoomLevelIndicator: false,
7
+ };
8
+ return (state = initialData, { type, payload }) => {
9
+ switch (type) {
10
+ case "ACTIVATE_ZOOM_INDICATOR":
11
+ case "DEACTIVATE_ZOOM_INDICATOR":
12
+ return Object.assign({}, state, payload);
13
+ default:
14
+ return state;
15
+ }
16
+ };
17
+ },
18
+
19
+ doZoomIndicatorActivate:
20
+ () =>
21
+ ({ dispatch, store }) => {
22
+ dispatch({
23
+ type: "ACTIVATE_ZOOM_INDICATOR",
24
+ payload: {
25
+ zoomLevelIndicator: true,
26
+ },
27
+ });
28
+ },
29
+
30
+ selectZoomLevelIndicator: (state) => {
31
+ return state.zoomLevel.zoomLevelIndicator;
32
+ },
33
+ };
34
+
35
+ // debugger
@@ -0,0 +1,17 @@
1
+ import zoomIndicator from "./zoom-indicator";
2
+ import bundle from "./bundle";
3
+
4
+ const plugin = {
5
+ pluginName: "zoomIndicator",
6
+ enabled: true,
7
+ bundle: bundle,
8
+ components: [
9
+ {
10
+ component: zoomIndicator,
11
+ region: "right-sidebar-top",
12
+ sortOrder: 40,
13
+ },
14
+ ],
15
+ };
16
+
17
+ export default plugin;
@@ -0,0 +1,34 @@
1
+ import React from "react";
2
+ import { connect } from "../../utils/redux-bundler-react";
3
+ import { SidebarButton } from "../../application-controls/index";
4
+
5
+ class zoomIndicator extends React.Component {
6
+ constructor(props) {
7
+ super(props);
8
+ this.handleClick = this.handleClick.bind(this);
9
+ }
10
+ handleClick() {}
11
+ render() {
12
+ const { mapZoom, zoomLevelIndicator } = this.props;
13
+
14
+ if (zoomLevelIndicator == true) {
15
+ return (
16
+ <SidebarButton
17
+ iconText={Math.floor(mapZoom)}
18
+ label="Zoom-Indicator"
19
+ title="Zoom-Indicator"
20
+ onClick={this.handleClick}
21
+ />
22
+ );
23
+ } else {
24
+ return null;
25
+ }
26
+ }
27
+ }
28
+
29
+ export default connect(
30
+ "doZoomIndicatorActivate",
31
+ "selectMapZoom",
32
+ "selectZoomLevelIndicator",
33
+ zoomIndicator
34
+ );
@@ -0,0 +1,80 @@
1
+ import createInteraction from "../../openlayers-utils/interaction-creator";
2
+
3
+ const zoombox = createInteraction({
4
+ interaction: "dragbox",
5
+ });
6
+
7
+ export default {
8
+ name: "zoombox",
9
+
10
+ getReducer() {
11
+ const initialData = {
12
+ geom: null,
13
+ shouldZoom: false,
14
+ };
15
+
16
+ return (state = initialData, { type, payload }) => {
17
+ if (type === "ZOOMBOX_BOXENDED") {
18
+ return Object.assign({}, state, payload);
19
+ }
20
+
21
+ if (type === "ZOOMBOX_ZOOMSTART") {
22
+ return Object.assign({}, state, payload);
23
+ }
24
+
25
+ if (type === "ZOOMBOX_ZOOMEND") {
26
+ return Object.assign({}, state, payload);
27
+ }
28
+
29
+ return state;
30
+ };
31
+ },
32
+
33
+ doStartZoomBox:
34
+ () =>
35
+ ({ dispatch, store }) => {
36
+ store.doSetCursor("zoom-in");
37
+ const map = store.selectMap();
38
+ map.addInteraction(zoombox);
39
+ zoombox.on("boxend", store.doGetZoomGeom);
40
+ dispatch({ type: "ZOOMBOX_STARTED" });
41
+ },
42
+
43
+ doGetZoomGeom:
44
+ () =>
45
+ ({ dispatch, store }) => {
46
+ dispatch({
47
+ type: "ZOOMBOX_BOXENDED",
48
+ payload: { geom: zoombox.getGeometry(), shouldZoom: true },
49
+ });
50
+ },
51
+
52
+ doStopZoomBox:
53
+ () =>
54
+ ({ dispatch, store }) => {
55
+ store.doSetCursor();
56
+ const map = store.selectMap();
57
+ map.removeInteraction(zoombox);
58
+ zoombox.un("boxend", store.doGetZoomGeom);
59
+ dispatch({ type: "ZOOMBOX_STOPPED" });
60
+ },
61
+
62
+ doZoomBox:
63
+ () =>
64
+ ({ dispatch, store }) => {
65
+ dispatch({ type: "ZOOMBOX_ZOOMSTART", payload: { shouldZoom: false } });
66
+ const geom = store.selectZoomBoxGeom();
67
+ store.doZoomToExtent(geom, 0.1);
68
+ dispatch({ type: "ZOOMBOX_ZOOMEND", payload: { geom: null } });
69
+ },
70
+
71
+ selectZoomBoxGeom: (state) => {
72
+ return state.zoombox.geom;
73
+ },
74
+
75
+ reactShouldZoom: (state) => {
76
+ if (state.zoombox.shouldZoom) return { actionCreator: "doZoomBox" };
77
+ },
78
+ };
79
+
80
+ //debugger
@@ -0,0 +1,15 @@
1
+ import ZoomToBoxButton from './zoom-to-box-button';
2
+ import bundle from './bundle';
3
+
4
+ const plugin = {
5
+ pluginName: 'ZoomtoExtent',
6
+ enabled: true,
7
+ bundle: bundle,
8
+ components:[{
9
+ component: ZoomToBoxButton,
10
+ region: 'basic-toolbar',
11
+ sortOrder: 20
12
+ }]
13
+ }
14
+
15
+ export default plugin;
@@ -0,0 +1,53 @@
1
+ import React from "react";
2
+ import { connect } from "../../utils/redux-bundler-react";
3
+ import { BasicToolbarButton } from "../../application-controls";
4
+
5
+ class ZoomToBoxButton extends React.Component {
6
+ // constructor(props){
7
+ // super(props);
8
+ // this.activate = this.activate.bind(this);
9
+ // this.deactivate = this.deactivate.bind(this);
10
+ // this.onBoxend = this.onBoxend.bind(this);
11
+ // }
12
+
13
+ // onBoxend(e){
14
+ // const { doZoomToExtent } = this.props;
15
+ // const extent = this.interaction.getGeometry().getExtent();
16
+ // doZoomToExtent(extent);
17
+ // }
18
+
19
+ // activate(){
20
+ // const { doSetInteraction, doSetCursor } = this.props;
21
+ // doSetCursor('zoom-in')
22
+ // this.interaction = createInteraction({
23
+ // interaction: 'dragbox',
24
+ // on:[{
25
+ // event: 'boxend',
26
+ // listener: this.onBoxend
27
+ // }]
28
+ // })
29
+ // doSetInteraction(this.interaction)
30
+ // }
31
+
32
+ // deactivate(){
33
+ // const { doUnsetInteractions, doSetCursor } = this.props;
34
+ // doSetCursor();
35
+ // doUnsetInteractions();
36
+ // }
37
+
38
+ render() {
39
+ const { doStartZoomBox, doStopZoomBox } = this.props;
40
+ return (
41
+ <BasicToolbarButton
42
+ enabled={true}
43
+ iconClass="ms ms-zoom-box"
44
+ iconStyle={{}}
45
+ title="Zoom to custom extent"
46
+ onActivate={doStartZoomBox}
47
+ onDeactivate={doStopZoomBox}
48
+ />
49
+ );
50
+ }
51
+ }
52
+
53
+ export default connect("doStartZoomBox", "doStopZoomBox", ZoomToBoxButton);
@@ -0,0 +1,304 @@
1
+ @charset "UTF-8";
2
+
3
+ @font-face {
4
+ font-family: "maki";
5
+ src:url("../fonts/maki.eot");
6
+ src:url("../fonts/maki.eot?#iefix") format("embedded-opentype"),
7
+ url("../fonts/maki.woff") format("woff"),
8
+ url("../fonts/maki.ttf") format("truetype"),
9
+ url("../fonts/maki.svg#maki") format("svg");
10
+ font-weight: normal;
11
+ font-style: normal;
12
+
13
+ }
14
+
15
+ [data-icon]:before {
16
+ font-family: "maki" !important;
17
+ content: attr(data-icon);
18
+ font-style: normal !important;
19
+ font-weight: normal !important;
20
+ font-variant: normal !important;
21
+ text-transform: none !important;
22
+ speak: none;
23
+ line-height: 1;
24
+ -webkit-font-smoothing: antialiased;
25
+ -moz-osx-font-smoothing: grayscale;
26
+ }
27
+
28
+ [class^="maki-"]:before,
29
+ [class*=" maki-"]:before {
30
+ font-family: "maki" !important;
31
+ font-style: normal !important;
32
+ font-weight: normal !important;
33
+ font-variant: normal !important;
34
+ text-transform: none !important;
35
+ speak: none;
36
+ line-height: 1;
37
+ -webkit-font-smoothing: antialiased;
38
+ -moz-osx-font-smoothing: grayscale;
39
+ }
40
+
41
+ .maki-airfield:before {
42
+ content: "\61";
43
+ }
44
+ .maki-airport:before {
45
+ content: "\62";
46
+ }
47
+ .maki-alcohol-shop:before {
48
+ content: "\63";
49
+ }
50
+ .maki-america-football:before {
51
+ content: "\64";
52
+ }
53
+ .maki-art-gallery:before {
54
+ content: "\65";
55
+ }
56
+ .maki-bank:before {
57
+ content: "\66";
58
+ }
59
+ .maki-bar:before {
60
+ content: "\67";
61
+ }
62
+ .maki-baseball:before {
63
+ content: "\68";
64
+ }
65
+ .maki-basketball:before {
66
+ content: "\69";
67
+ }
68
+ .maki-beer:before {
69
+ content: "\6a";
70
+ }
71
+ .maki-bicycle:before {
72
+ content: "\6b";
73
+ }
74
+ .maki-building:before {
75
+ content: "\6c";
76
+ }
77
+ .maki-bus:before {
78
+ content: "\6d";
79
+ }
80
+ .maki-cafe:before {
81
+ content: "\6e";
82
+ }
83
+ .maki-campsite:before {
84
+ content: "\6f";
85
+ }
86
+ .maki-cemetery:before {
87
+ content: "\70";
88
+ }
89
+ .maki-cinema:before {
90
+ content: "\71";
91
+ }
92
+ .maki-circle:before {
93
+ content: "\72";
94
+ }
95
+ .maki-circle-stroked:before {
96
+ content: "\73";
97
+ }
98
+ .maki-college:before {
99
+ content: "\74";
100
+ }
101
+ .maki-commercial:before {
102
+ content: "\75";
103
+ }
104
+ .maki-cricket:before {
105
+ content: "\76";
106
+ }
107
+ .maki-cross:before {
108
+ content: "\77";
109
+ }
110
+ .maki-dam:before {
111
+ content: "\78";
112
+ }
113
+ .maki-danger:before {
114
+ content: "\79";
115
+ }
116
+ .maki-disability:before {
117
+ content: "\7a";
118
+ }
119
+ .maki-embassy:before {
120
+ content: "\41";
121
+ }
122
+ .maki-emergency-telephone:before {
123
+ content: "\42";
124
+ }
125
+ .maki-fast-food:before {
126
+ content: "\43";
127
+ }
128
+ .maki-ferry:before {
129
+ content: "\44";
130
+ }
131
+ .maki-fire-station:before {
132
+ content: "\45";
133
+ }
134
+ .maki-fuel:before {
135
+ content: "\46";
136
+ }
137
+ .maki-garden:before {
138
+ content: "\47";
139
+ }
140
+ .maki-golf:before {
141
+ content: "\48";
142
+ }
143
+ .maki-grocery:before {
144
+ content: "\49";
145
+ }
146
+ .maki-harbor:before {
147
+ content: "\4a";
148
+ }
149
+ .maki-heliport:before {
150
+ content: "\4b";
151
+ }
152
+ .maki-hospital:before {
153
+ content: "\4c";
154
+ }
155
+ .maki-industrial:before {
156
+ content: "\4d";
157
+ }
158
+ .maki-library:before {
159
+ content: "\4e";
160
+ }
161
+ .maki-lodging:before {
162
+ content: "\4f";
163
+ }
164
+ .maki-logging:before {
165
+ content: "\50";
166
+ }
167
+ .maki-marker:before {
168
+ content: "\51";
169
+ }
170
+ .maki-marker-stroked:before {
171
+ content: "\52";
172
+ }
173
+ .maki-monument:before {
174
+ content: "\53";
175
+ }
176
+ .maki-museum:before {
177
+ content: "\54";
178
+ }
179
+ .maki-music:before {
180
+ content: "\55";
181
+ }
182
+ .maki-oil-well:before {
183
+ content: "\56";
184
+ }
185
+ .maki-park:before {
186
+ content: "\57";
187
+ }
188
+ .maki-park2:before {
189
+ content: "\58";
190
+ }
191
+ .maki-parking:before {
192
+ content: "\59";
193
+ }
194
+ .maki-parking-garage:before {
195
+ content: "\5a";
196
+ }
197
+ .maki-pharmacy:before {
198
+ content: "\30";
199
+ }
200
+ .maki-pitch:before {
201
+ content: "\31";
202
+ }
203
+ .maki-place-of-worship:before {
204
+ content: "\32";
205
+ }
206
+ .maki-police:before {
207
+ content: "\33";
208
+ }
209
+ .maki-post:before {
210
+ content: "\34";
211
+ }
212
+ .maki-prison:before {
213
+ content: "\35";
214
+ }
215
+ .maki-rail:before {
216
+ content: "\36";
217
+ }
218
+ .maki-rail-above:before {
219
+ content: "\37";
220
+ }
221
+ .maki-rail-underground:before {
222
+ content: "\38";
223
+ }
224
+ .maki-religious-christian:before {
225
+ content: "\39";
226
+ }
227
+ .maki-religious-jewish:before {
228
+ content: "\21";
229
+ }
230
+ .maki-religious-muslim:before {
231
+ content: "\22";
232
+ }
233
+ .maki-restaurant:before {
234
+ content: "\23";
235
+ }
236
+ .maki-roadblock:before {
237
+ content: "\24";
238
+ }
239
+ .maki-school:before {
240
+ content: "\25";
241
+ }
242
+ .maki-shop:before {
243
+ content: "\26";
244
+ }
245
+ .maki-skiing:before {
246
+ content: "\27";
247
+ }
248
+ .maki-slaughterhouse:before {
249
+ content: "\28";
250
+ }
251
+ .maki-soccer:before {
252
+ content: "\29";
253
+ }
254
+ .maki-square:before {
255
+ content: "\2a";
256
+ }
257
+ .maki-square-stroked:before {
258
+ content: "\2b";
259
+ }
260
+ .maki-star:before {
261
+ content: "\2c";
262
+ }
263
+ .maki-star-stroked:before {
264
+ content: "\2d";
265
+ }
266
+ .maki-swimming:before {
267
+ content: "\2e";
268
+ }
269
+ .maki-telephone:before {
270
+ content: "\2f";
271
+ }
272
+ .maki-tennis:before {
273
+ content: "\3a";
274
+ }
275
+ .maki-theatre:before {
276
+ content: "\3b";
277
+ }
278
+ .maki-toilets:before {
279
+ content: "\3c";
280
+ }
281
+ .maki-town-hall:before {
282
+ content: "\3d";
283
+ }
284
+ .maki-triangle:before {
285
+ content: "\3e";
286
+ }
287
+ .maki-triangle-stroked:before {
288
+ content: "\3f";
289
+ }
290
+ .maki-warehouse:before {
291
+ content: "\40";
292
+ }
293
+ .maki-waste-basket:before {
294
+ content: "\5b";
295
+ }
296
+ .maki-water:before {
297
+ content: "\5d";
298
+ }
299
+ .maki-wetland:before {
300
+ content: "\5e";
301
+ }
302
+ .maki-zoo:before {
303
+ content: "\5f";
304
+ }