29.0.10 • Published 7 years ago
dhis2-gis-api v29.0.10
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: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, © <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);
29.0.10
7 years ago
29.0.9
7 years ago
29.0.8
7 years ago
29.0.7
7 years ago
29.0.6
7 years ago
29.0.5
7 years ago
27.0.16
7 years ago
28.0.7
7 years ago
29.0.4
7 years ago
29.0.3
7 years ago
29.0.2
7 years ago
29.0.1
7 years ago
27.0.15
8 years ago
28.0.6
8 years ago
27.0.14
8 years ago
28.0.5
8 years ago
28.0.4
8 years ago
28.0.1
8 years ago
27.0.12
8 years ago
27.0.11
8 years ago
27.0.10
8 years ago
27.0.9
8 years ago
27.0.8
8 years ago
27.0.7
8 years ago
26.0.3
8 years ago
27.0.2
8 years ago
27.0.1
8 years ago
26.0.1
8 years ago
26.0.0
8 years ago
23.0.0
9 years ago
0.1.1
9 years ago
0.1.0
9 years ago