From 6abba32707d866124869c356acf7b714ee7272e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 3 Jul 2014 14:53:04 +0200 Subject: [PATCH] Minor change to vector-wfs example My linter complains that vectorSource is used before it is defined. --- examples/vector-wfs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/vector-wfs.js b/examples/vector-wfs.js index 7b9714098e..1ca1d6438a 100644 --- a/examples/vector-wfs.js +++ b/examples/vector-wfs.js @@ -10,10 +10,6 @@ goog.require('ol.style.Stroke'); goog.require('ol.style.Style'); goog.require('ol.tilegrid.XYZ'); -var loadFeatures = function(response) { - vectorSource.addFeatures(vectorSource.readFeatures(response)); -}; - var vectorSource = new ol.source.ServerVector({ format: new ol.format.GeoJSON(), loader: function(extent, resolution, projection) { @@ -32,6 +28,10 @@ var vectorSource = new ol.source.ServerVector({ projection: 'EPSG:3857' }); +var loadFeatures = function(response) { + vectorSource.addFeatures(vectorSource.readFeatures(response)); +}; + var vector = new ol.layer.Vector({ source: vectorSource, style: new ol.style.Style({