← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11803: PNG maps, consistent layer ordering with gis

 

------------------------------------------------------------
revno: 11803
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-08-26 18:27:20 +0200
message:
  PNG maps, consistent layer ordering with gis
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-08-23 16:05:01 +0000
+++ dhis-2/dhis-services/dhis-service-mapgeneration/src/main/java/org/hisp/dhis/mapgeneration/GeoToolsMapGenerationService.java	2013-08-26 16:27:20 +0000
@@ -35,6 +35,7 @@
 import java.awt.image.BufferedImage;
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.List;
 
@@ -109,7 +110,10 @@
 
         InternalMap internalMap = new InternalMap();
         
-        for ( MapView mapView : map.getMapViews() )
+        List<MapView> mapViews = new ArrayList<MapView>( map.getMapViews() );
+        Collections.reverse( mapViews );
+        
+        for ( MapView mapView : mapViews )
         {        
             InternalMapLayer mapLayer = getSingleInternalMapLayer( mapView );