Fix gjslint errors

This commit is contained in:
Tom Payne
2012-07-10 21:01:00 +02:00
committed by Tom Payne
parent cf9a41f77e
commit 133f6199f7
3 changed files with 6 additions and 4 deletions

View File

@@ -78,7 +78,8 @@ ol.Map = function(target, opt_values) {
values[ol.MapProperty.LAYERS] = new ol.Array();
}
if (!(ol.MapProperty.PROJECTION in values)) {
values[ol.MapProperty.PROJECTION] = ol.Projection.createFromCode('EPSG:3857');
values[ol.MapProperty.PROJECTION] =
ol.Projection.createFromCode('EPSG:3857');
}
this.setValues(values);

View File

@@ -56,9 +56,9 @@ ol.TileStore.createOpenStreetMap = function() {
var tileGrid = ol.TileGrid.createOpenStreetMap(18);
var tileUrlFunction = ol.TileUrlFunction.createFromTemplates([
'http://a.tile.openstreetmap.org/{z}/{x}/{y}.png',
'http://b.tile.openstreetmap.org/{z}/{x}/{y}.png',
'http://c.tile.openstreetmap.org/{z}/{x}/{y}.png'
'http://a.tile.openstreetmap.org/{z}/{x}/{y}.png',
'http://b.tile.openstreetmap.org/{z}/{x}/{y}.png',
'http://c.tile.openstreetmap.org/{z}/{x}/{y}.png'
]);
var crossOrigin = '';

View File

@@ -38,6 +38,7 @@ ol.TileUrlFunction.createFromTileUrlFunctions = function(tileUrlFunctions) {
/**
* @param {Array.<string>} templates Templates.
* @return {ol.TileUrlFunctionType} Tile URL function.
*/
ol.TileUrlFunction.createFromTemplates = function(templates) {
return ol.TileUrlFunction.createFromTileUrlFunctions(