Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #18 from MonsantoCo/HOTFIX-map-render
Browse files Browse the repository at this point in the history
Hotfix map render
  • Loading branch information
stazrad authored Mar 27, 2020
2 parents 93d8cf9 + 0b74918 commit 6f49980
Show file tree
Hide file tree
Showing 11 changed files with 278 additions and 98 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bayer/ol-kit",
"version": "0.0.0-2",
"version": "0.0.0-3",
"license": "BSD",
"description": "Mapping components & utils built with openlayers + react",
"contributors": [
Expand Down
159 changes: 105 additions & 54 deletions src/Basemaps/__snapshots__/BasemapManager.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,68 +3,85 @@
exports[`<BasemapManager /> should render a basic basemap manager component 1`] = `
"<div>
<div
[33mclass[39m=[32m\\"sc-AykKC dsYIKf\\"[39m
[33mclass[39m=[32m\\"sc-AxjAm jCJLXK\\"[39m
id=\\"_ol_kit_map_test_id\\"
/>
>
<div
class=\\"ol-viewport\\"
data-view=\\"1\\"
style=\\"position: relative; overflow: hidden; width: 100%; height: 100%;\\"
>
<canvas
class=\\"ol-unselectable\\"
style=\\"width: 100%; height: 100%; display: block;\\"
/>
<div
class=\\"ol-overlaycontainer\\"
/>
<div
class=\\"ol-overlaycontainer-stopevent\\"
/>
</div>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKD hRUgPd\\"[39m
[33mclass[39m=[32m\\"sc-AxirZ icXBkU\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKE cIkYyn _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw cCxGZL _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF iWUCxL\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb jbZdWE\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
OpenStreetMap
</label>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKE iBOYxc _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw giVZre _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF eflfDt\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb lhYASk\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
Stamen Terrain
</label>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKE iBOYxc _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw giVZre _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF kSjnCy\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb eXxcRz\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
Stamen Toner Dark
</label>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKE iBOYxc _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw giVZre _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF fIzkiO\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb fAaRGN\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
Stamen Toner Lite
</label>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKE iBOYxc _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw giVZre _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF fOiiMC\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb cSPPXx\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
Blank White
</label>
Expand All @@ -76,68 +93,85 @@ exports[`<BasemapManager /> should render a basic basemap manager component 1`]
exports[`<BasemapManager /> should render a single child 1`] = `
"<div>
<div
[33mclass[39m=[32m\\"sc-AykKC dsYIKf\\"[39m
[33mclass[39m=[32m\\"sc-AxjAm jCJLXK\\"[39m
id=\\"_ol_kit_map_test_id\\"
/>
>
<div
class=\\"ol-viewport\\"
data-view=\\"19\\"
style=\\"position: relative; overflow: hidden; width: 100%; height: 100%;\\"
>
<canvas
class=\\"ol-unselectable\\"
style=\\"width: 100%; height: 100%; display: none;\\"
/>
<div
class=\\"ol-overlaycontainer\\"
/>
<div
class=\\"ol-overlaycontainer-stopevent\\"
/>
</div>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKD hRUgPd\\"[39m
[33mclass[39m=[32m\\"sc-AxirZ icXBkU\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKE cIkYyn _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw cCxGZL _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF iWUCxL\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb jbZdWE\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
OpenStreetMap
</label>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKE iBOYxc _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw giVZre _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF eflfDt\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb lhYASk\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
Stamen Terrain
</label>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKE iBOYxc _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw giVZre _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF kSjnCy\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb eXxcRz\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
Stamen Toner Dark
</label>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKE iBOYxc _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw giVZre _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF fIzkiO\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb fAaRGN\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
Stamen Toner Lite
</label>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKE iBOYxc _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw giVZre _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF fOiiMC\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb cSPPXx\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
Blank White
</label>
Expand All @@ -154,68 +188,85 @@ exports[`<BasemapManager /> should render a single child 1`] = `
exports[`<BasemapManager /> should render an array of children 1`] = `
"<div>
<div
[33mclass[39m=[32m\\"sc-AykKC dsYIKf\\"[39m
[33mclass[39m=[32m\\"sc-AxjAm jCJLXK\\"[39m
id=\\"_ol_kit_map_test_id\\"
/>
>
<div
class=\\"ol-viewport\\"
data-view=\\"37\\"
style=\\"position: relative; overflow: hidden; width: 100%; height: 100%;\\"
>
<canvas
class=\\"ol-unselectable\\"
style=\\"width: 100%; height: 100%; display: none;\\"
/>
<div
class=\\"ol-overlaycontainer\\"
/>
<div
class=\\"ol-overlaycontainer-stopevent\\"
/>
</div>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKD hRUgPd\\"[39m
[33mclass[39m=[32m\\"sc-AxirZ icXBkU\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKE cIkYyn _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw cCxGZL _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF iWUCxL\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb jbZdWE\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
OpenStreetMap
</label>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKE iBOYxc _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw giVZre _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF eflfDt\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb lhYASk\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
Stamen Terrain
</label>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKE iBOYxc _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw giVZre _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF kSjnCy\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb eXxcRz\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
Stamen Toner Dark
</label>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKE iBOYxc _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw giVZre _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF fIzkiO\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb fAaRGN\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
Stamen Toner Lite
</label>
</div>
<div
[33mclass[39m=[32m\\"sc-AykKE iBOYxc _ol_kit_basemapOption\\"[39m
[33mclass[39m=[32m\\"sc-AxiKw giVZre _ol_kit_basemapOption\\"[39m
>
<div
[33mclass[39m=[32m\\"sc-AykKF fOiiMC\\"[39m
[33mclass[39m=[32m\\"sc-AxhCb cSPPXx\\"[39m
/>
<label
[33mclass[39m=[32m\\"sc-AykKG fFNDtM\\"[39m
[33mclass[39m=[32m\\"sc-AxhUy drnGGb\\"[39m
>
Blank White
</label>
Expand Down
Loading

0 comments on commit 6f49980

Please sign in to comment.