1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
/**
* OSM Tiles@Home layers.
*
* Copyright 2009-2014 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (GPL). If you
* did not receive this file, see http://www.horde.org/licenses/gpl.
*
* @author Michael J. Rubinsky <mrubinsk@horde.org>
*/
HordeMap.Ocm = Class.create(
{
initialize: function(opts){},
/**
* Provide a very basic base set of layers from open sources.
*/
getLayers: function(layers)
{
return {
'streets': new OpenLayers.Layer.OSM(
'OpenCycleMap',
[
'http://a.tile.openstreetmap.org/${z}/${x}/${y}.png',
'http://b.tile.openstreetmap.org/${z}/${x}/${y}.png',
'http://c.tile.openstreetmap.org/${z}/${x}/${y}.png'
],
{ 'minZoomLevel': 1, 'numZoomLevels': 18 }
)
}
}
});
|