[OpenLayers-Users] Cloudmade tiles in openlayers
romke bomke
romkebomke666 at yahoo.com
Sat Mar 2 12:49:54 PST 2013
Hello, I'm quite new to this. How do I get tiles that are served from cloudmade to be used in openlayers? What would my declarations have to be to create a new map and a new layer?
With leaflet my declaration, using the URL of cloudmade, is:
<code>
L.tileLayer('http://{s}.tile.cloudmade.com/{API}/2059/256/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://cloudmade.com">CloudMade</a>'
}).addTo(map);
</code>
Thanks for any help,
Romke
More information about the Users
mailing list