Give each source file a unique name

This commit is contained in:
Tom Payne
2012-10-25 19:03:04 +02:00
parent af872e25c3
commit e5d39724c9
31 changed files with 0 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
goog.provide('ol.source.OpenStreetMap');
goog.require('ol.source.XYZ');
/**
* @constructor
* @extends {ol.source.XYZ}
*/
ol.source.OpenStreetMap = function() {
var attribution = new ol.Attribution(
'&copy; <a href="http://www.openstreetmap.org">OpenStreetMap</a> ' +
'contributors, ' +
'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>');
goog.base(this, {
attributions: [attribution],
maxZoom: 18,
url: 'http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png'
});
};
goog.inherits(ol.source.OpenStreetMap, ol.source.XYZ);