Changeset 7913
- Timestamp:
- 08/31/08 21:06:28 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/edgemaster/openlayers/examples/multiple-projections.html
r6961 r7913 41 41 map = new OpenLayers.Map('map', {maxResolution: 360/512/16, numZoomLevels: 15, projection: epsg4326, controls: [ new OpenLayers.Control.Navigation(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.LayerSwitcher()]}); 42 42 43 layer1= new OpenLayers.Layer.WMS( "OSM - EPSG:4326",43 osmll = new OpenLayers.Layer.WMS( "OSM - EPSG:4326", 44 44 [ 45 45 "http://t1.hypercube.telascience.org/tiles?", … … 51 51 {maxResolution: 360/512/16, numZoomLevels: 15, projection: epsg4326}); 52 52 53 mapnik= new OpenLayers.Layer.TMS(53 osmgoo = new OpenLayers.Layer.TMS( 54 54 "OSM - EPSG:900913", 55 55 "http://tile.openstreetmap.org/", … … 60 60 ); 61 61 62 map.addLayers([ layer1, mapnik]);62 map.addLayers([osmgoo, osmll]); 63 63 gml = new OpenLayers.Layer.GML("OSM", "osm/sutton_coldfield.osm", {format: OpenLayers.Format.OSM}); 64 map.zoomToExtent(new OpenLayers.Bounds(-1.819072,52.549034,-1.814341,52.551582) );64 map.zoomToExtent(new OpenLayers.Bounds(-1.819072,52.549034,-1.814341,52.551582).transform(epsg4326, map.getProjectionObject())); 65 65 66 66 map.addLayer(gml);
