goog.provide('ol.source.OpenStreetMap'); goog.require('ol.Attribution'); goog.require('ol.source.XYZ'); /** * @constructor * @extends {ol.source.XYZ} */ ol.source.OpenStreetMap = function() { var attribution = new ol.Attribution( '© OpenStreetMap ' + 'contributors, ' + 'CC BY-SA'); goog.base(this, { attributions: [attribution], opaque: true, maxZoom: 18, url: 'http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png' }); }; goog.inherits(ol.source.OpenStreetMap, ol.source.XYZ);