OpenLayers OpenLayers

Changeset 6375

Show
Ignore:
Timestamp:
02/26/08 07:05:53 (11 months ago)
Author:
crschmidt
Message:

moving example, adding text

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/rgerard/openlayers/examples/pan-zoom-panels.html

    r6374 r6375  
    33<html> 
    44<head> 
    5     <title>Test</title> 
     5    <title>Pan and Zoom Panels</title> 
    66    <style> 
    77    #mapDiv { 
     
    99        width: 512px; 
    1010    } 
    11  
    12      
    1311    </style> 
    14     <script type="text/javascript" src="lib/OpenLayers.js"></script> 
     12    <script type="text/javascript" src="../lib/OpenLayers.js"></script> 
    1513    <script> 
    1614    var map; 
     
    2422                  "http://labs.metacarta.com/wms/vmap0", 
    2523                  {layers: 'basic'} ); 
    26         /* 
    27         var google = new OpenLayers.Layer.Google( "Google Hybrid" , {type: G_HYBRID_MAP }); 
    28         var ve = new OpenLayers.Layer.VirtualEarth( "VE"); 
    29         var yahoo = new OpenLayers.Layer.Yahoo( "Yahoo"); 
    30         var mm = new OpenLayers.Layer.MultiMap( "MultiMap"); 
    31         map.addLayers([wms, google, ve, yahoo, mm]); 
    32         */ 
    33          
    3424        map.addLayers([wms]); 
    3525         
    36         markers = new OpenLayers.Layer.Markers("markers"); 
    37         map.addLayer(markers); 
    38          
    3926        map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); 
    40         /* 
    41         map.addControl( new OpenLayers.Control.LayerSwitcher() ); 
    42         map.addControl( new OpenLayers.Control.MousePosition() ); 
    43         */ 
    4427        map.addControl( new OpenLayers.Control.PanPanel() ); 
    4528        map.addControl( new OpenLayers.Control.ZoomPanel() ); 
     
    4831</head> 
    4932<body onload='init();'> 
    50 <h1> foo </h1> 
     33<h1>Pan and Zoom Panels</h1> 
    5134<div id="mapDiv"></div> 
     35<p>The pan and zoom panels allow you to use CSS styling to change the 
     36   look and feel of the panels, including changing their position 
     37   and their icons without needing to change any code. 
     38</p>    
    5239</body> 
    5340</html>