From 95bef8d7d2571ca86cd2bee948bbaa87a4cbed57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 6 Feb 2014 10:36:14 +0100 Subject: [PATCH] Fix vector examples --- examples/image-vector-layer.js | 1 + examples/kml-timezones.js | 1 + examples/select-features.js | 1 + examples/topojson.js | 1 + examples/vector-layer.js | 1 + 5 files changed, 5 insertions(+) diff --git a/examples/image-vector-layer.js b/examples/image-vector-layer.js index 28bb6f2d32..773d5ea232 100644 --- a/examples/image-vector-layer.js +++ b/examples/image-vector-layer.js @@ -30,6 +30,7 @@ var map = new ol.Map({ new ol.layer.Image({ source: new ol.source.ImageVector({ source: new ol.source.GeoJSON({ + projection: 'EPSG:3857', url: 'data/geojson/countries.geojson' }), styleFunction: function(feature, resolution) { diff --git a/examples/kml-timezones.js b/examples/kml-timezones.js index d6e81dd025..afd14955db 100644 --- a/examples/kml-timezones.js +++ b/examples/kml-timezones.js @@ -47,6 +47,7 @@ var styleFunction = function(feature, resolution) { var vector = new ol.layer.Vector({ source: new ol.source.KML({ + projection: 'EPSG:3857', url: 'data/kml/timezones.kml' }), styleFunction: styleFunction diff --git a/examples/select-features.js b/examples/select-features.js index 388a411351..f1b1860339 100644 --- a/examples/select-features.js +++ b/examples/select-features.js @@ -33,6 +33,7 @@ var selectedStyle = [new ol.style.Style({ var vector = new ol.layer.Vector({ source: new ol.source.GeoJSON({ + projection: 'EPSG:3857', url: 'data/geojson/countries.geojson' }), styleFunction: function(feature, layer) { diff --git a/examples/topojson.js b/examples/topojson.js index f10d24a6f9..b6a35fe36c 100644 --- a/examples/topojson.js +++ b/examples/topojson.js @@ -19,6 +19,7 @@ var raster = new ol.layer.Tile({ var vector = new ol.layer.Vector({ source: new ol.source.TopoJSON({ + projection: 'EPSG:3857', url: 'data/topojson/world-110m.json' }), styleFunction: function(feature, resolution) { diff --git a/examples/vector-layer.js b/examples/vector-layer.js index a0f142a21a..86569915a8 100644 --- a/examples/vector-layer.js +++ b/examples/vector-layer.js @@ -15,6 +15,7 @@ goog.require('ol.style.Text'); var styleCache = {}; var vectorLayer = new ol.layer.Vector({ source: new ol.source.GeoJSON({ + projection: 'EPSG:3857', url: 'data/geojson/countries.geojson' }), styleFunction: function(feature, resolution) {