comparison client/src/map/Maplayer.vue @ 1185:7e6fce79ddc8

Reverted 03c820e25573 as it caused extensive ongoing network traffic.
author Sascha Wilde <wilde@intevation.de>
date Thu, 15 Nov 2018 18:27:27 +0100
parents 03c820e25573
children b23622905a3f
comparison
equal deleted inserted replaced
1184:064d44ccc6f2 1185:7e6fce79ddc8
156 ) 156 )
157 .then(response => { 157 .then(response => {
158 var features = new GeoJSON().readFeatures( 158 var features = new GeoJSON().readFeatures(
159 JSON.stringify(response.data) 159 JSON.stringify(response.data)
160 ); 160 );
161 vectorSource.clear();
162 vectorSource.addFeatures(features); 161 vectorSource.addFeatures(features);
163 // console.log( 162 // console.log(
164 // "loaded", 163 // "loaded",
165 // features.length, 164 // features.length,
166 // featureRequestOptions.featureTypes, 165 // featureRequestOptions.featureTypes,