dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #25554
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12708: Map PNG, proper size of points
------------------------------------------------------------
revno: 12708
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-10-16 11:21:05 +0200
message:
Map PNG, proper size of points
modified:
dhis-2/dhis-services/dhis-service-mapgeneration/src/main/java/org/hisp/dhis/mapgeneration/GeoToolsMapGenerationService.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-mapgeneration/src/main/java/org/hisp/dhis/mapgeneration/GeoToolsMapGenerationService.java'
--- dhis-2/dhis-services/dhis-service-mapgeneration/src/main/java/org/hisp/dhis/mapgeneration/GeoToolsMapGenerationService.java 2013-10-16 08:49:41 +0000
+++ dhis-2/dhis-services/dhis-service-mapgeneration/src/main/java/org/hisp/dhis/mapgeneration/GeoToolsMapGenerationService.java 2013-10-16 09:21:05 +0000
@@ -170,8 +170,6 @@
return null;
}
- boolean isIndicator = false; //TODO
-
List<OrganisationUnit> atLevels = new ArrayList<OrganisationUnit>();
List<OrganisationUnit> inGroups = new ArrayList<OrganisationUnit>();
@@ -204,8 +202,8 @@
Period period = !mapView.getPeriods().isEmpty() ? mapView.getPeriods().get( 0 ) : null;
- Integer radiusLow = !isIndicator ? mapView.getRadiusLow() : DEFAULT_RADIUS_LOW;
- Integer radiusHigh = !isIndicator ? mapView.getRadiusHigh() : DEFAULT_RADIUS_HIGH;
+ Integer radiusLow = mapView.getRadiusLow() != null ? mapView.getRadiusLow() : DEFAULT_RADIUS_LOW;
+ Integer radiusHigh = mapView.getRadiusHigh() != null ? mapView.getRadiusHigh() : DEFAULT_RADIUS_HIGH;
// Get the low and high colors, typically in hexadecimal form, e.g. #ff3200
Color colorLow = MapUtils.createColorFromString( StringUtils.trimToNull( mapView.getColorLow() ) != null ? mapView.getColorLow()
@@ -286,10 +284,7 @@
// Update the radius of each map object in this map layer according to
// its map object's highest and lowest values
- if ( !isIndicator )
- {
- mapLayer.applyInterpolatedRadii();
- }
+ mapLayer.applyInterpolatedRadii();
}
return mapLayer;