This package has been deprecated

Author message:

This is no longer maintained, please use the @dhis2 scoped package: https://www.npmjs.com/package/@dhis2/gis-api

dhis2-gis-api

29.0.10 • Public • Published

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);

Readme

Keywords

Package Sidebar

Install

npm i dhis2-gis-api

Weekly Downloads

22

Version

29.0.10

License

BSD-3-Clause

Unpacked Size

6.75 MB

Total Files

71

Last publish

Collaborators

  • jason.p.pickering
  • turban