From a3e5944e4ebec8ba303282466277fe29250e109f Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 26 Jun 2006 13:54:14 +0000 Subject: [PATCH] KaMap layer now sublasses initTiles, to implement the kamap 0-based tiling scheme instead of the OpenLayers/WW -180,-90 method. This means that there are no longer any restrictions on using ka-Map with other layers! woohoo! You can use ka-map on top of WorldWind, or with another ka-map layer, even if it has differently sized tiles. yay! git-svn-id: http://svn.openlayers.org/trunk/openlayers@764 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/kamap.html | 4 ++- examples/tiger.html | 7 ++-- lib/OpenLayers/Layer/KaMap.js | 63 +++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+), 3 deletions(-) diff --git a/examples/kamap.html b/examples/kamap.html index 80a641766e..8261f2cfb4 100644 --- a/examples/kamap.html +++ b/examples/kamap.html @@ -17,6 +17,8 @@ "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} ); var ka_wms = new OpenLayers.Layer.KaMap( "KaMap", "http://freemap.in/~crschmidt/ka-map/ka-map-0.2-20060208/htdocs/tile.php?" , { map: 'gmap', g: 'roads' }, 'degrees', 72 ); + var tiger = new OpenLayers.Layer.KaMap( "KaMap", "http://maps.dmsolutions.ca/demo/us_streets/tile.php", {map:'tiger04', g:'__base__'}); + tiger.setTileSize(new OpenLayers.Size(300,300)); var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic", "http://wms.jpl.nasa.gov/wms.cgi", {layers: "modis,global_mosaic"}); @@ -24,7 +26,7 @@ - map.addLayers([jpl_wms, ka_wms]); + map.addLayers([jpl_wms, ka_wms, tiger]); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.setCenter(new OpenLayers.LonLat(0, 0), 0); } diff --git a/examples/tiger.html b/examples/tiger.html index e965786cec..3e204e321c 100644 --- a/examples/tiger.html +++ b/examples/tiger.html @@ -11,11 +11,14 @@