Adding missing attribution for OSM

This commit is contained in:
Pierre GIRAUD
2012-07-20 16:18:28 +02:00
parent 584749b524
commit 940c0e8ca2

View File

@@ -8,10 +8,12 @@ var map = new OpenLayers.Map({
div: "map", div: "map",
layers: [ layers: [
new OpenLayers.Layer.XYZ("OSM (with buffer)", urls, { new OpenLayers.Layer.XYZ("OSM (with buffer)", urls, {
transitionEffect: "resize", buffer: 2, sphericalMercator: true transitionEffect: "resize", buffer: 2, sphericalMercator: true,
attribution: "Data CC-By-SA by <a href='http://openstreetmap.org/'>OpenStreetMap</a>"
}), }),
new OpenLayers.Layer.XYZ("OSM (without buffer)", urls, { new OpenLayers.Layer.XYZ("OSM (without buffer)", urls, {
transitionEffect: "resize", buffer: 0, sphericalMercator: true transitionEffect: "resize", buffer: 0, sphericalMercator: true,
attribution: "Data CC-By-SA by <a href='http://openstreetmap.org/'>OpenStreetMap</a>"
}) })
], ],
controls: [ controls: [