changeset 703:e9c28c42c927

client: improve WFS loader * Remove superfluous projection setting for riverkilometre. * Adjust comment to reflect that we do not need to set srsName anymore.
author Bernhard Reiter <bernhard@intevation.de>
date Fri, 21 Sep 2018 00:24:41 +0200
parents aaf5dbfb9512
children fe0889460e97 6aa09d12157f
files client/src/map/Maplayer.vue
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/map/Maplayer.vue	Fri Sep 21 00:20:57 2018 +0200
+++ b/client/src/map/Maplayer.vue	Fri Sep 21 00:24:41 2018 +0200
@@ -78,10 +78,9 @@
       // build a function to be used for VectorSource.setLoader()
       // make use of WFS().writeGetFeature to build the request
       // and use our HTTP library to actually do it
-      // NOTE: a) the projection has to be fixed in the featureRequestOptions
-      //  just like geometryName has to be given, because we want to
-      //  load depending on the bbox
-      //  b) the VectorSource has to have option strategy: bbox for this
+      // NOTE: a) the geometryName has to be given in featureRequestOptions,
+      //          because we want to load depending on the bbox
+      //  b) the VectorSource has to have the option strategy: bbox
       featureRequestOptions["outputFormat"] = "application/json";
       var loader = function(extent, resolution, projection) {
         featureRequestOptions["bbox"] = extent;
@@ -234,7 +233,6 @@
 
     // FIXME this is hardwired for now
     var featureRequestOptions6 = {
-      srsName: "EPSG:3857",
       featureNS: "gemma",
       featurePrefix: "gemma",
       featureTypes: ["distance_marks_geoserver"],