Skip to content

Commit

Permalink
fix: no data color and split view layer ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
turban committed Feb 19, 2020
1 parent f500d9d commit 76b8a4a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "maps-app",
"version": "34.0.12",
"version": "34.0.13",
"description": "DHIS2 Maps",
"main": "src/app.js",
"repository": {
Expand Down Expand Up @@ -54,7 +54,7 @@
"@dhis2/d2-ui-org-unit-dialog": "5.2.10",
"@dhis2/d2-ui-org-unit-tree": "5.2.10",
"@dhis2/gis-api": "^34.0.11",
"@dhis2/maps-gl": "^1.0.4",
"@dhis2/maps-gl": "^1.0.5",
"@dhis2/ui-core": "^4.1.1",
"@dhis2/ui-widgets": "^2.0.5",
"@material-ui/core": "^4.9.3",
Expand Down
3 changes: 2 additions & 1 deletion src/components/map/SplitView.js
Expand Up @@ -57,8 +57,9 @@ class SplitView extends PureComponent {
onRemove={this.onMapRemove}
setMapControls={this.setMapControls}
>
<Layer {...basemap} />
<Layer index={0} {...basemap} />
<ThematicLayer
index={1}
period={period}
{...layer}
openContextMenu={openContextMenu}
Expand Down
2 changes: 1 addition & 1 deletion src/components/map/ThematicLayer.js
Expand Up @@ -43,7 +43,7 @@ class ThematicLayer extends Layer {
...feature.properties,
...(values[feature.id]
? values[feature.id]
: { value: i18n.t('No data'), color: null }),
: { value: i18n.t('No data'), color: '#CCC' }),
},
}));
}
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Expand Up @@ -464,10 +464,10 @@
leaflet.markercluster "^1.4.1"
whatwg-fetch "^3.0.0"

"@dhis2/maps-gl@^1.0.4":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@dhis2/maps-gl/-/maps-gl-1.0.4.tgz#83cc0d91e1c1cbaa26c61616f0e09842a3c62f36"
integrity sha512-4JKH4jMiEJ5v8BOv3iftkLP6CkI5wQaEN7n1K8VlDKTKtMjmjGG6QeofeD7oCpoVUtGfvUiTVEb+n+6bsabYHQ==
"@dhis2/maps-gl@^1.0.5":
version "1.0.5"
resolved "https://registry.yarnpkg.com/@dhis2/maps-gl/-/maps-gl-1.0.5.tgz#2df0ff3b0cd85b62bd02e576ce1ebf28e13e29c3"
integrity sha512-fHdpEtepKlhAJ2iQGIP/8DgyTMZz/ceLQghGo2dPqewTkUnpxHmUavj5QU39F32pugmcMyhJZBGTH38uTdnkAQ==
dependencies:
"@mapbox/sphericalmercator" "^1.1.0"
"@turf/area" "^6.0.1"
Expand Down Expand Up @@ -6410,9 +6410,9 @@ gitbook-plugin-github@^2.0.0:
integrity sha1-UWbnY8/MQC1DKIC3pshcHFS1ao0=

gl-matrix@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/gl-matrix/-/gl-matrix-3.1.0.tgz#f5b2de17d8fed95a79e5025b10cded0ab9ccbed0"
integrity sha512-526NA+3EA+ztAQi0IZpSWiM0fyQXIp7IbRvfJ4wS/TjjQD0uv0fVybXwwqqSOlq33UckivI0yMDlVtboWm3k7A==
version "3.2.1"
resolved "https://registry.yarnpkg.com/gl-matrix/-/gl-matrix-3.2.1.tgz#2d8e35125bf854f49abded8a0c8350b1a4907a26"
integrity sha512-YYVO8jUSf6+SakL4AJmx9Jc7zAZhkJQ+WhdtX3VQe5PJdCOX6/ybY4x1vk+h94ePnjRn6uml68+QxTAJneUpvA==

glob-base@^0.3.0:
version "0.3.0"
Expand Down

0 comments on commit 76b8a4a

Please sign in to comment.