COLORS:Object;
colornum: number;
+
constructor(http:Http) {
this.activeId = null;
this.LEVEL--;
}
+ /**
+ * initiates the map with position and zoom
+ */
init() {
let map = this.map;
}
+ /**
+ * prints out error messages in the console
+ * @param error
+ */
logError(error) {
console.error(error);
}
+ /**
+ * gets data from DHIS API
+ * @param query - for what kind of data to retrieve
+ * @param instance - this instance to use
+ * @param isParent - little hack to see if it is a parent you wish the children to
+ */
getData(query, instance, isParent) {
instance.http.get(dhisAPI + '/api/organisationUnits' + query)
.map(res => res.json())
);
}
+ /**
+ * Gets the number of levels the haiercy
+ */
getLevels() {
this.http.get(dhisAPI + '/api/organisationUnitLevels')
.map(res => res.json())
}
});
-
- this.map.data.addListener('mouseover', function (e) {
+//slette ?? §§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§
+ /* this.map.data.addListener('mouseover', function (e) {
if(!instance.popupON) {
instance.popupON = true;
- console.log("hei");
+
instance.popup = new google.maps.InfoWindow({
content: e.feature.getProperty('name'),
position: e.latLng
});
}
- }
+ }*/
drillDown() {
this.closeModal();