Change TIGER ka-Map example to be a freemap instance of ka-Map which caches the Open Plans tiger instead of using DM Solutions TIGER product demo.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@822 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<head>
|
||||
<style type="text/css">
|
||||
#map {
|
||||
width: 512px;
|
||||
width: 700px;
|
||||
height: 512px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
@@ -13,12 +13,13 @@
|
||||
function init(){
|
||||
var map = new OpenLayers.Map('map', {'maxResolution': 1.40625/4, controls:[]});
|
||||
|
||||
var ka_wms = new OpenLayers.Layer.KaMap( "KaMap", "http://maps.dmsolutions.ca/demo/us_streets/tile.php", {map:'tiger04', g:'__base__'});
|
||||
ka_wms.setTileSize(new OpenLayers.Size(300,300));
|
||||
var ka_wms = new OpenLayers.Layer.KaMap( "TIGER (KaMap)",
|
||||
"http://boston.freemap.in/tile.php" , { map: 'tiger', layers: 'TIGER' }, 'degrees', 72 );
|
||||
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
|
||||
"http://wms.jpl.nasa.gov/wms.cgi",
|
||||
{layers: "modis,global_mosaic"});
|
||||
map.addLayers([jpl_wms,ka_wms]); // , ka_wms, kamap_wms]);
|
||||
jpl_wms.setVisibility(false);
|
||||
map.addLayers([jpl_wms,ka_wms]);
|
||||
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
||||
map.addControl(new OpenLayers.Control.MouseToolbar());
|
||||
map.addControl(new OpenLayers.Control.PanZoomBar());
|
||||
|
||||
Reference in New Issue
Block a user