Fixing extent check for undefined extents.

Thanks @marcjansen for spotting this. To make the epsg-4326
example work, I also had to change the WMS version to 1.1.1.
This commit is contained in:
ahocevar
2013-03-05 09:47:52 +01:00
parent 3526244e0c
commit 19aeb04141
2 changed files with 4 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ var layers = new ol.Collection([
source: new ol.source.TiledWMS({
url: 'http://vmap0.tiles.osgeo.org/wms/vmap0',
crossOrigin: null,
version: '1.1.1',
params: {
'LAYERS': 'basic',
'FORMAT': 'image/jpeg'