# HG changeset patch # User Bernhard Reiter # Date 1537482281 -7200 # Node ID e9c28c42c9272e2e6708251cb6b76d9d5544b341 # Parent aaf5dbfb9512a943539349f12280b65f72452c2a client: improve WFS loader * Remove superfluous projection setting for riverkilometre. * Adjust comment to reflect that we do not need to set srsName anymore. diff -r aaf5dbfb9512 -r e9c28c42c927 client/src/map/Maplayer.vue --- 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"],