Changes default layers order.
[gpl/argeo-suite.git] / environment / org.argeo.geo.ui / src / org / argeo / support / openlayers / OpenLayersMap.java
index 6fce760aee9a42bb63a8f7a97faafc01cec947ef..cfaac559c95f0e18e573ff85bb4d251cd3e25ab5 100644 (file)
@@ -190,12 +190,12 @@ public class OpenLayersMap extends Composite {
                                        if (centerLat != null && centerLng != null) {
                                                setCenter(centerLng, centerLat);
                                        }
-                                       if (vectorSource != null)
-                                               renderVectorSource();
-                                       if (gpxSource != null)
-                                               renderGpxSource();
                                        if (!geoJsonSources.isEmpty())
                                                renderGeoJsonSources();
+                                       if (gpxSource != null)
+                                               renderGpxSource();
+                                       if (vectorSource != null)
+                                               renderVectorSource();
                                }
                                return null;
                        } catch (Exception e) {