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 33 34 35 36 37 38 39 40 41 42 43
|
/**
* Open Mapquest 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.Mapquest = 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(
'Open Mapquest',
[
'http://otile1.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png',
'http://otile2.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png',
'http://otile3.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png',
'http://otile4.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png'
],
{ 'minZoomLevel': 1, 'numZoomLevels': 18 }
),
'sat': new OpenLayers.Layer.OSM(
'Open Mapquest Aerial',
[
'http://oatile1.mqcdn.com/naip/${z}/${x}/${y}.png',
'http://oatile2.mqcdn.com/naip/${z}/${x}/${y}.png',
'http://oatile3.mqcdn.com/naip/${z}/${x}/${y}.png',
'http://oatile4.mqcdn.com/naip/${z}/${x}/${y}.png'
],
{ 'minZoomLevel': 1, 'numZoomLevels': 11 }
)
}
}
});
|