Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dhis2/gis-api
DHIS 2 GIS API
https://github.com/dhis2/gis-api
synced-settings web-lib
Last synced: 10 days ago
JSON representation
DHIS 2 GIS API
- Host: GitHub
- URL: https://github.com/dhis2/gis-api
- Owner: dhis2
- Created: 2015-11-17T10:05:08.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-15T21:04:10.000Z (over 3 years ago)
- Last Synced: 2024-10-05T06:55:22.781Z (about 1 month ago)
- Topics: synced-settings, web-lib
- Language: JavaScript
- Homepage:
- Size: 2.27 MB
- Stars: 5
- Watchers: 34
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 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](http://leafletjs.com/reference.html#map-class), 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: '© OpenStreetMap, © CartoDB'
}).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](https://jira.dhis2.org)
under the [LIBS](https://jira.dhis2.org/projects/LIBS) project.Deep links:
- [Bug](https://jira.dhis2.org/secure/CreateIssueDetails!init.jspa?pid=10700&issuetype=10006&components=11014)
- [Feature](https://jira.dhis2.org/secure/CreateIssueDetails!init.jspa?pid=10700&issuetype=10300&components=11014)
- [Task](https://jira.dhis2.org/secure/CreateIssueDetails!init.jspa?pid=10700&issuetype=10003&components=11014)