OpenStreetMap to OSM renaming

OSM is a well-known name, and is shorter than OpenStreetMap.
This commit is contained in:
Éric Lemoine
2013-04-10 10:07:49 +02:00
parent ee987bc951
commit a694661793
17 changed files with 41 additions and 41 deletions

View File

@@ -3,18 +3,18 @@ goog.require('ol.Map');
goog.require('ol.RendererHints');
goog.require('ol.View2D');
goog.require('ol.layer.TileLayer');
goog.require('ol.source.OpenStreetMap');
goog.require('ol.source.OSM');
var map = new ol.Map({
layers: [
new ol.layer.TileLayer({
source: new ol.source.OpenStreetMap({
source: new ol.source.OSM({
attributions: [
new ol.Attribution(
'All maps © ' +
'<a href="http://www.opencyclemap.org/">OpenCycleMap</a>'),
ol.source.OpenStreetMap.DATA_ATTRIBUTION
ol.source.OSM.DATA_ATTRIBUTION
],
url: 'http://{a-c}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png'
})