Skip to content

Commit

Permalink
feat: enable ability to show values in the labels (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen authored Dec 7, 2022
1 parent d6ebff9 commit 6f47032
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 17 deletions.
9 changes: 0 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
## [3.5.3](https://github.com/dhis2/maps-gl/compare/v3.5.2...v3.5.3) (2022-11-16)


### Bug Fixes

* force compact attribution if overlapping scale bar (DHIS2-14014) ([#508](https://github.com/dhis2/maps-gl/issues/508)) ([52a20cb](https://github.com/dhis2/maps-gl/commit/52a20cbe862fb3950d561be774975d39981263a7))
* reject promise is setStyle triggers an error ([#509](https://github.com/dhis2/maps-gl/issues/509)) ([976d027](https://github.com/dhis2/maps-gl/commit/976d02774eaf6615554f2679ddc6f8776963db56))
* vector style visibility ([#511](https://github.com/dhis2/maps-gl/issues/511)) ([381b8df](https://github.com/dhis2/maps-gl/commit/381b8dfaf331d6d5de753791bc6fc9466b02d516))

## [3.5.2](https://github.com/dhis2/maps-gl/compare/v3.5.1...v3.5.2) (2022-09-06)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dhis2/maps-gl",
"version": "3.5.3",
"version": "3.5.2",
"description": "A WebGL rendering engine for DHIS2 maps based on Mapbox GL JS.",
"publishConfig": {
"access": "public"
Expand Down
7 changes: 0 additions & 7 deletions src/__tests__/Map.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ jest.mock('../earthengine/ee_worker_loader', () => ({
default: jest.fn(),
}))

// Gives error if not present:
// TypeError: Super expression must either be null or a function
jest.mock('../controls/Attribution', () => ({
__esModule: true,
default: jest.fn(),
}))

describe('DHIS2 Maps-gl Map', () => {
it('should initialize correctly', () => {
const map = new Map('el')
Expand Down
1 change: 1 addition & 0 deletions src/utils/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const labelSource = (features, { fontSize }, isBoundary) => ({
getOffsetEms(geometry.type, properties.radius, fontSize),
],
color: isBoundary ? properties.color : '#333',
value: properties.value,
},
}))
),
Expand Down

0 comments on commit 6f47032

Please sign in to comment.