Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:openlayers/ol3 into vector

  • Loading branch information...
commit d8b6d17105f601db45db5a45b0b0e7834e6e302e 2 parents aa4c4dd + df4f2c4
@ahocevar ahocevar authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 examples/epsg-4326.js
View
7 examples/epsg-4326.js
@@ -9,8 +9,6 @@ goog.require('ol.projection');
goog.require('ol.source.TiledWMS');
-var epsg4326 = ol.projection.getFromCode('EPSG:4326');
-
var layers = new ol.Collection([
new ol.layer.TileLayer({
source: new ol.source.TiledWMS({
@@ -20,8 +18,7 @@ var layers = new ol.Collection([
'VERSION': '1.1.1',
'LAYERS': 'basic',
'FORMAT': 'image/jpeg'
- },
- projection: epsg4326
+ }
})
})
]);
@@ -34,7 +31,7 @@ var map = new ol.Map({
scaleLineUnits: ol.control.ScaleLineUnits.DEGREES,
target: 'map',
view: new ol.View2D({
- projection: epsg4326,
+ projection: ol.projection.getFromCode('EPSG:4326'),
center: new ol.Coordinate(0, 0),
zoom: 2
})
Please sign in to comment.
Something went wrong with that request. Please try again.