Changes default layers order.
authorMathieu Baudier <mbaudier@argeo.org>
Sat, 10 Jul 2021 05:56:13 +0000 (07:56 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Sat, 10 Jul 2021 05:56:13 +0000 (07:56 +0200)
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) {