DHIS 2 GIS Web App
dhis2 / gis-app Goto Github PK
View Code? Open in Web Editor NEWDHIS 2 GIS Web App
DHIS 2 GIS Web App
Add support for using any number of any data dimension as filters in GIS module.
https://blueprints.launchpad.net/dhis2/+spec/gis-mutiple-filters
The types of dimensions to include are categories, org unit group sets, category option group sets. (Do not support data element group sets).
Allow the user to decide if the symbols should be scaled or have a fixed size.
For best map display: Draw polygons first and the points in ascending order.
Thematic layer (type and value) + Boundary layer (type only)
https://blueprints.launchpad.net/dhis2/+spec/event-clustering
Not yet supported by the new Leaflet API.
This is currently not allowed, and no error message is given. Need to be supported in the API first.
https://blueprints.launchpad.net/dhis2/+spec/map-event-layer-favorite
Use native:
Error: {"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"Could not delete due to association with another object: DeletionHandler"}
There should also be an error message to the user.
Temporarily disabled in LayerHandlerThematic.js
if (layer.legendPanel) { // TODO: temporarily fix
layer.legendPanel.update(element.outerHTML);
}
View is missing.
Add support for selecting / filtering on all available organisation unit group sets in the GIS facility layer. Display all org unit group sets as drop-downs in the layer screen and allow the user to select one group from each drop-down, or to skip the drop down in order to exclude it from the filter.
https://blueprints.launchpad.net/dhis2/+spec/gis-facility-layer-multiple-group-sets
HTTP ERROR 500
Problem accessing /api/analytics/events/query/eBAyeGv0exc.json.
Reason: Server Error
Caused by: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DataAccessResourceFailureException:
In GIS favorites, store the background layer selection. Respect this selection when displaying the map in the dashboard and when restoring the favorite in GIS.
https://blueprints.launchpad.net/dhis2/+spec/gis-background-layer-in-favorite
Requires back-end changes.
Replace in core functions:
When the database language is set to something other than English (e.g. Burmese) the Orgunit tree is displayed with the correct translations of orgunits. However, when hovering over a geographical feature, the base language is displayed.
However, when changing the interface language to for example (the language of the translation) the translation is displayed.
This would seem to be inconsistent as the orgunit translations should be derived from the database language, not the interface language.
On version 2.22 21920
Should be longitude, latitude, but mercator (meters) is used.
MapLoader.js, line 132
WARNING in core.js from UglifyJs
Dropping unused variable selectHandlers [./src/core/FeatureContextMenu.js:11,8]
Dropping unused variable win [./src/core/FeaturePopup.js:30,16]
Dropping unreachable code [./src/core/LayerHandlerBoundary.js:63,8]
Dropping unused variable levelOrder [./src/core/LayerHandlerBoundary.js:105,16]
Dropping unused variable loadLegend [./src/core/LayerHandlerBoundary.js:5,8]
Dropping unused variable layerConfig [./src/core/LayerHandlerEvent.js:79,20]
Dropping unused variable config [./src/core/LayerHandlerEvent.js:74,16]
Dropping unused variable features [./src/core/LayerHandlerEvent.js:17,12]
Dropping unused variable compareView [./src/core/LayerHandlerEvent.js:3,8]
Side effects in initialization of unused variable dimConf [./src/core/LayerHandlerEvent.js:9,8]
Dropping unused variable addCircles [./src/core/LayerHandlerFacility.js:10,2]
Dropping unused variable isValidCoordinate [./src/core/LayerHandlerFacility.js:14,2]
Dropping unused variable addNames [./src/core/LayerHandlerThematic.js:352,12]
Dropping unused variable addData [./src/core/LayerHandlerThematic.js:5,8]
Side effects in initialization of unused variable dimConf [./src/core/LayerHandlerThematic.js:19,8]
Dropping unused variable closeAllLayers [./src/core/MapLoader.js:4,2]
Dropping unused variable obj [./src/core/getInstance.js:789,32]
Dropping unused variable a [./src/core/getInstance.js:999,20]
Dropping unused variable layerConf [./src/core/getInstance.js:1002,20]
Dropping unused variable layers [./src/core/getInstance.js:7,8]
Condition always false [./~/base64-js/lib/b64.js:124,1]
WARNING in app.js from UglifyJs
Dropping unused variable tbar [./src/app/FavoriteWindow.js:16,8]
Dropping unused variable bbar [./src/app/FavoriteWindow.js:17,8]
Side effects in initialization of unused variable dimConf [./src/app/FavoriteWindow.js:29,8]
Dropping unused variable key [./src/app/LayerWidgetBoundary.js:113,43]
Side effects in initialization of unused variable rts [./src/app/LayerWidgetBoundary.js:252,20]
Dropping unused variable panel [./src/app/LayerWidgetBoundary.js:677,28]
Dropping unused variable stageId [./src/app/LayerWidgetEvent.js:232,24]
Dropping unused variable ux [./src/app/LayerWidgetEvent.js:543,33]
Dropping unused variable key [./src/app/LayerWidgetEvent.js:702,43]
Side effects in initialization of unused variable rts [./src/app/LayerWidgetEvent.js:841,20]
Dropping unused variable periodMode [./src/app/LayerWidgetEvent.js:26,8]
Dropping unused variable onPeriodModeSelect [./src/app/LayerWidgetEvent.js:27,8]
Dropping unused variable getDateLink [./src/app/LayerWidgetEvent.js:28,8]
Dropping unused variable startEndDate [./src/app/LayerWidgetEvent.js:31,8]
Dropping unused variable onPeriodChange [./src/app/LayerWidgetEvent.js:34,8]
Dropping unused variable onCheckboxAdd [./src/app/LayerWidgetEvent.js:35,8]
Dropping unused variable intervalListeners [./src/app/LayerWidgetEvent.js:36,8]
Dropping unused variable relativePeriodCmpMap [./src/app/LayerWidgetEvent.js:37,8]
Dropping unused variable weeks [./src/app/LayerWidgetEvent.js:38,8]
Dropping unused variable months [./src/app/LayerWidgetEvent.js:39,8]
Dropping unused variable biMonths [./src/app/LayerWidgetEvent.js:40,8]
Dropping unused variable quarters [./src/app/LayerWidgetEvent.js:41,8]
Dropping unused variable sixMonths [./src/app/LayerWidgetEvent.js:42,8]
Dropping unused variable financialYears [./src/app/LayerWidgetEvent.js:43,8]
Dropping unused variable years [./src/app/LayerWidgetEvent.js:44,8]
Dropping unused variable relativePeriod [./src/app/LayerWidgetEvent.js:45,8]
Dropping unused variable checkboxes [./src/app/LayerWidgetEvent.js:46,8]
Dropping unused variable fixedPeriodAvailable [./src/app/LayerWidgetEvent.js:48,8]
Dropping unused variable fixedPeriodSelected [./src/app/LayerWidgetEvent.js:49,8]
Dropping unused variable onPeriodTypeSelect [./src/app/LayerWidgetEvent.js:50,8]
Dropping unused variable periodType [./src/app/LayerWidgetEvent.js:51,8]
Dropping unused variable prevYear [./src/app/LayerWidgetEvent.js:52,8]
Dropping unused variable nextYear [./src/app/LayerWidgetEvent.js:53,8]
Dropping unused variable fixedPeriodSettings [./src/app/LayerWidgetEvent.js:54,8]
Dropping unused variable fixedPeriodAvailableSelected [./src/app/LayerWidgetEvent.js:55,8]
Dropping unused variable periods [./src/app/LayerWidgetEvent.js:56,8]
Side effects in initialization of unused variable namePropertyUrl [./src/app/LayerWidgetEvent.js:86,8]
Side effects in initialization of unused variable nameProperty [./src/app/LayerWidgetEvent.js:87,8]
Dropping unused variable key [./src/app/LayerWidgetFacility.js:154,43]
Side effects in initialization of unused variable rts [./src/app/LayerWidgetFacility.js:293,20]
Dropping unused variable panel [./src/app/LayerWidgetFacility.js:771,28]
Dropping unused variable key [./src/app/LayerWidgetThematic.js:1052,43]
Side effects in initialization of unused variable rts [./src/app/LayerWidgetThematic.js:1191,20]
Side effects in initialization of unused variable vType [./src/app/LayerWidgetThematic.js:1685,12]
Dropping unused variable panel [./src/app/LayerWidgetThematic.js:1965,28]
Dropping unused variable record [./src/app/LegendSetWindow.js:83,20]
Dropping unused variable showUpdateLegend [./src/app/LegendSetWindow.js:258,16]
Dropping unused variable validateForm [./src/app/LegendSetWindow.js:259,16]
Dropping unused variable reset [./src/app/LegendSetWindow.js:245,12]
Dropping unused variable data [./src/app/LegendSetWindow.js:246,12]
Dropping unused variable button [./src/app/SearchWindow.js:6,8]
Dropping unused variable padding [./src/app/createExtensions.js:224,16]
Side effects in initialization of unused variable conf [./src/app/extendInstance.js:3,8]
Example map config:
https://play.dhis2.org/demo/api/maps/zDP78aJU8nX.json?fields=*,mapViews%5B*%5D
Add a layer for satellite imagery in GIS based on Google Earth Engine.
https://blueprints.launchpad.net/dhis2/+spec/gis-google-earth-engine-layer
var id = r.getAllResponseHeaders().location.split('/').pop();
[10:07]
Får: Uncaught TypeError: Cannot read property 'split' of undefined
Probably related to cross domain requests:
Ext.Ajax.defaultHeaders = {
'Authorization': 'Basic ' + btoa(context.auth)
};
Both for plugins and in GIS module.
Uncaught ReferenceError: dimConf is not defined
Make it possible to change colour, size and to switch clusters on and off.
Needed to get rid of Ext JS in dashboard maps.
Only spinner showing
It's currently possible to download a map as a PNG, but it only works for for vector overlays and not base maps. We should remove or improve this feature.
The best option will probably be to use a headless browser (e.g. PhantomJS) to programmatically capture map contents. This should work with all layer types supported by Leaflet.
An alternative is to do this in the browser, which requires all map layers to be drawn with Canvas. This will probably be more complicated to implement.
https://blueprints.launchpad.net/dhis2/+spec/gis-download-facility-layer
The new Leaflet API is made with flexible layer ordering, while the previous OpenLayers version uses a fixed layer order. We need to make the two solutions play nicely together.
The drag event is captured by the dashboard.
The scale bar is often covered by the map attribution.
If you open a favorite "ANC: 1st visit coverage (%) by district last year" and select "Edit layer", you get an error:
Uncaught TypeError: Cannot read property 'objectName' of undefined
LayerWidgetThematic.js:1738 Uncaught TypeError: Cannot read property 'objectName'
Wait until 2.23 release.
"Health Facilities by Type with Radius SL" under Immunization dashboard.
This favorite should show a predefined legend set:
http://localhost:8080/dhis-web-mapping/index.html?id=LRlMopleWMf
https://play.dhis2.org/demo/dhis-web-mapping/index.html?id=LRlMopleWMf
So far, I've disabled popups for plugin maps - to have the same behaviour as for OpenLayers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.