OpenLayers OpenLayers

Changeset 1089

Show
Ignore:
Timestamp:
08/08/06 12:45:39 (2 years ago)
Author:
euzuro
Message:

add example of setting gmap type to hybrid

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/euzuro/layerswitcher/examples/google.html

    r915 r1089  
    2323        function init(){ 
    2424            map = new OpenLayers.Map( $('map') ); 
    25             gmap = new OpenLayers.Layer.Google( "Google" ); 
     25            gmap = new OpenLayers.Layer.Google( "Google" , {type: G_HYBRID_MAP }); 
    2626            map.addLayer(gmap); 
    2727 
     
    3131            map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); 
    3232            map.addControl( new OpenLayers.Control.LayerSwitcher() ); 
     33 
    3334        } 
    3435         
     
    4243            markers.removeMarker(marker); 
    4344        } 
    44          
     45                 
    4546    // --> 
    4647 
     
    5051    <h1>OpenLayers With Google Layer Example</h1> 
    5152    <div id="map"></div> 
    52     <div style="background-color:green" onclick="add()"> click to add the marker to the map</div> 
    5353    <div style="background-color:red" onclick="remove()"> click to remove the marker from the map</div> 
    5454  </body>