Changeset 1089
- Timestamp:
- 08/08/06 12:45:39 (2 years ago)
- Files:
-
- sandbox/euzuro/layerswitcher/examples/google.html (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/euzuro/layerswitcher/examples/google.html
r915 r1089 23 23 function init(){ 24 24 map = new OpenLayers.Map( $('map') ); 25 gmap = new OpenLayers.Layer.Google( "Google" );25 gmap = new OpenLayers.Layer.Google( "Google" , {type: G_HYBRID_MAP }); 26 26 map.addLayer(gmap); 27 27 … … 31 31 map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); 32 32 map.addControl( new OpenLayers.Control.LayerSwitcher() ); 33 33 34 } 34 35 … … 42 43 markers.removeMarker(marker); 43 44 } 44 45 45 46 // --> 46 47 … … 50 51 <h1>OpenLayers With Google Layer Example</h1> 51 52 <div id="map"></div> 52 <div style="background-color:green" onclick="add()"> click to add the marker to the map</div>53 53 <div style="background-color:red" onclick="remove()"> click to remove the marker from the map</div> 54 54 </body>
