31.1.0 • Published 4 years ago

@dhis2/gis-api v31.1.0

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
4 years ago

DHIS 2 GIS API

Various Leaflet extensions to meet the mapping needs of the DHIS 2 platform.

Leaflet documentation: http://leafletjs.com/reference-1.0.0.html

How to use?

import d2map from 'gis-api/src/';

d2map is the same as L.map, with som extended features (more features will come!): https://github.com/dhis2/gis-api/blob/master/src/Map.js

const map = d2map('map');

// Add basemap
L.tileLayer('//cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png', {
    attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, &copy; <a href="http://cartodb.com/attributions">CartoDB</a>'
}).addTo(map);

// Add place search
L.control.geocoder('mapzenSearchKey', {
    attribution: null,
    panToPoint: null
}).addTo(map);

// Zoom map
map.setView([51.505, -0.09], 13);

Report an issue

The issue tracker can be found in DHIS2 JIRA under the LIBS project.

Deep links:

31.1.0

4 years ago

33.0.11

4 years ago

32.0.26

4 years ago

34.0.11

5 years ago

34.0.10

5 years ago

34.0.9

5 years ago

34.0.8

5 years ago

34.0.7

5 years ago

34.0.5

5 years ago

34.0.6

5 years ago

34.0.3

5 years ago

31.0.7

5 years ago

32.0.25

5 years ago

34.0.2

5 years ago

33.0.9

5 years ago

33.0.10

5 years ago

34.0.1

5 years ago

34.0.0

5 years ago

33.0.8

5 years ago

33.0.7

5 years ago

33.0.6

5 years ago

33.0.5

5 years ago

33.0.4

5 years ago

33.0.3

5 years ago

33.0.2

5 years ago

32.0.24

5 years ago

33.0.1

5 years ago

32.0.23

5 years ago

32.0.22

6 years ago

32.0.21

6 years ago

32.0.20

6 years ago

32.0.19

6 years ago

32.0.18

6 years ago

32.0.17

6 years ago

32.0.15

6 years ago

32.0.14

6 years ago

32.0.12

6 years ago

32.0.11

6 years ago

32.0.10

6 years ago

32.0.9

6 years ago

32.0.8

6 years ago

32.0.7

6 years ago

32.0.6

6 years ago

32.0.5

6 years ago

32.0.4

6 years ago

32.0.3

6 years ago

32.0.1

6 years ago

31.0.6

6 years ago

31.0.4

6 years ago

31.0.3

6 years ago

30.0.0

6 years ago

29.0.13

6 years ago

29.0.12

6 years ago

29.0.11

6 years ago