Adding missing attribution for OSM
This commit is contained in:
@@ -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: [
|
||||||
|
|||||||
Reference in New Issue
Block a user