Change WMS server in examples

This commit is contained in:
Frederic Junod
2014-08-07 17:25:06 +02:00
parent 18b3c3eee7
commit 134a4e220d
2 changed files with 4 additions and 8 deletions
+2 -4
View File
@@ -9,11 +9,9 @@ goog.require('ol.source.TileWMS');
var layers = [ var layers = [
new ol.layer.Tile({ new ol.layer.Tile({
source: new ol.source.TileWMS({ source: new ol.source.TileWMS({
url: 'http://vmap0.tiles.osgeo.org/wms/vmap0', url: 'http://demo.opengeo.org/geoserver/wms',
params: { params: {
'VERSION': '1.1.1', 'LAYERS': 'ne:NE1_HR_LC_SR_W_DR'
'LAYERS': 'basic',
'FORMAT': 'image/jpeg'
} }
}) })
}) })
+2 -4
View File
@@ -14,11 +14,9 @@ var map = new ol.Map({
layers: [ layers: [
new ol.layer.Tile({ new ol.layer.Tile({
source: new ol.source.TileWMS({ source: new ol.source.TileWMS({
url: 'http://vmap0.tiles.osgeo.org/wms/vmap0', url: 'http://demo.opengeo.org/geoserver/wms',
params: { params: {
'VERSION': '1.1.1', 'LAYERS': 'ne:NE1_HR_LC_SR_W_DR'
'LAYERS': 'basic',
'FORMAT': 'image/jpeg'
} }
}) })
}), }),