[OpenLayers-Users] How to add attribution to this layer?
Scott Chapman
scott at mischko.com
Mon Feb 27 01:08:21 EST 2012
I don't know how to add an attribution property to the baseOSM layer
below. I want to be able to display an attribution line on the map
saying where the data comes from, etc.
var arrayOSM =
["http://otile1.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.jpg",
"http://otile2.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.jpg",
"http://otile3.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.jpg",
"http://otile4.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.jpg"];
var baseOSM = new OpenLayers.Layer.OSM("MapQuest-OSM Tiles", arrayOSM);
Thanks!
Scott
More information about the Users
mailing list