Changeset 786
- Timestamp:
- 06/27/06 00:25:23 (2 years ago)
- Files:
-
- branches/openlayers/1.0/examples/ciesin.html (modified) (2 diffs)
- branches/openlayers/1.0/examples/click.html (modified) (2 diffs)
- branches/openlayers/1.0/examples/controls.html (modified) (2 diffs)
- branches/openlayers/1.0/examples/example.html (modified) (2 diffs)
- branches/openlayers/1.0/examples/google.html (modified) (1 diff)
- branches/openlayers/1.0/examples/kamap.html (modified) (2 diffs)
- branches/openlayers/1.0/examples/markerResize.html (modified) (2 diffs)
- branches/openlayers/1.0/examples/markers.html (modified) (2 diffs)
- branches/openlayers/1.0/examples/markersTextLayer.html (modified) (2 diffs)
- branches/openlayers/1.0/examples/markerss.html (modified) (2 diffs)
- branches/openlayers/1.0/examples/notile.html (modified) (2 diffs)
- branches/openlayers/1.0/examples/popups.html (modified) (2 diffs)
- branches/openlayers/1.0/examples/tiger.html (modified) (1 diff)
- branches/openlayers/1.0/examples/ve.html (modified) (1 diff)
- branches/openlayers/1.0/examples/wfs.html (modified) (3 diffs)
- branches/openlayers/1.0/examples/yahoo.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/openlayers/1.0/examples/ciesin.html
r583 r786 3 3 <style type="text/css"> 4 4 #map { 5 width: 800px;6 height: 475px;5 width: 512px; 6 height: 512px; 7 7 border: 1px solid black; 8 8 } … … 28 28 map.addLayers([ol_wms, jpl_wms, cie_wms]); 29 29 map.addControl(new OpenLayers.Control.LayerSwitcher()); 30 map.setCenter(new OpenLayers.LonLat(0, 0), 0); 30 // map.setCenter(new OpenLayers.LonLat(0, 0), 0); 31 map.zoomToFullExtent(); 31 32 } 32 33 // --> branches/openlayers/1.0/examples/click.html
r630 r786 3 3 <style type="text/css"> 4 4 #map { 5 width: 800px;6 height: 475px;5 width: 512px; 6 height: 512px; 7 7 border: 1px solid black; 8 8 } … … 25 25 map.addLayers([ol_wms, jpl_wms]); 26 26 map.addControl(new OpenLayers.Control.LayerSwitcher()); 27 map.setCenter(new OpenLayers.LonLat(0, 0), 0); 27 // map.setCenter(new OpenLayers.LonLat(0, 0), 0); 28 map.zoomToFullExtent(); 28 29 map.events.register("click", map, function(e) { 29 30 var lonlat = map.getLonLatFromViewPortPx(e.xy); branches/openlayers/1.0/examples/controls.html
r562 r786 3 3 <style type="text/css"> 4 4 #map { 5 width: 800px;6 height: 475px;5 width: 512px; 6 height: 512px; 7 7 border: 1px solid black; 8 8 } … … 35 35 map.addControl(new OpenLayers.Control.MouseToolbar()); 36 36 map.addControl(new OpenLayers.Control.LayerSwitcher()); 37 map.setCenter(new OpenLayers.LonLat(0, 0), 0); 37 // map.setCenter(new OpenLayers.LonLat(0, 0), 0); 38 map.zoomToFullExtent(); 38 39 } 39 40 // --> branches/openlayers/1.0/examples/example.html
r562 r786 3 3 <style type="text/css"> 4 4 #map { 5 width: 800px;6 height: 475px;5 width: 512px; 6 height: 512px; 7 7 border: 1px solid black; 8 8 } … … 32 32 map.addLayers([ol_wms, jpl_wms, dm_wms]); 33 33 map.addControl(new OpenLayers.Control.LayerSwitcher()); 34 map.setCenter(new OpenLayers.LonLat(0, 0), 0); 34 // map.setCenter(new OpenLayers.LonLat(0, 0), 0); 35 map.zoomToFullExtent(); 35 36 } 36 37 // --> branches/openlayers/1.0/examples/google.html
r610 r786 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 background-color: red; branches/openlayers/1.0/examples/kamap.html
r667 r786 3 3 <style type="text/css"> 4 4 #map { 5 width: 800px;6 height: 475px;5 width: 512px; 6 height: 512px; 7 7 border: 1px solid black; 8 8 } … … 17 17 "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} ); 18 18 var ka_wms = new OpenLayers.Layer.KaMap( "KaMap", 19 "http://www.h2guide.com/my-ka-map/h2tile.php?" , { map: 'h2guide', g: 'background' }, new OpenLayers.LonLat(0,0)); 19 "http://www.h2guide.com/my-ka-map/h2tile.php?", 20 { map: 'h2guide', g: 'background' }, 21 new OpenLayers.LonLat(0,0)); 20 22 21 23 22 24 map.addLayers([ol_wms, ka_wms]); 23 25 map.addControl(new OpenLayers.Control.LayerSwitcher()); 24 map. setCenter(new OpenLayers.LonLat(0, 0), 0);26 map.zoomToFullExtent(); 25 27 } 26 28 // --> branches/openlayers/1.0/examples/markerResize.html
r562 r786 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } … … 26 26 size = new OpenLayers.Size(50,50); 27 27 calculateOffset = function(size) { 28 return new OpenLayers.Pixel(-(size.w/2), -size.h); 29 }; 30 icon = new OpenLayers.Icon('http://boston.openguides.org/markers/AQUA.png',size,null, calculateOffset); 31 markers.addMarker(new OpenLayers.Marker(new OpenLayers.LonLat(-180,90), 32 icon)); 28 return new OpenLayers.Pixel(-(size.w/2), -size.h); }; 29 icon = new OpenLayers.Icon( 30 'http://boston.openguides.org/markers/AQUA.png', 31 size, null, calculateOffset); 32 markers.addMarker( 33 new OpenLayers.Marker(new OpenLayers.LonLat(-180,90), icon)); 33 34 34 map.setCenter(new OpenLayers.LonLat(0, 0), 0);35 35 map.addControl(new OpenLayers.Control.LayerSwitcher()); 36 map.zoomToFullExtent(); 36 37 } 37 38 branches/openlayers/1.0/examples/markers.html
r562 r786 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } … … 32 32 marker.events.register('mousedown', marker, function(evt) { alert(this.icon.url); Event.stop(evt); }); 33 33 markers.addMarker(marker); 34 map.setCenter(new OpenLayers.LonLat(0, 0), 0);35 34 map.addControl(new OpenLayers.Control.LayerSwitcher()); 35 map.zoomToFullExtent(); 36 36 } 37 37 // --> branches/openlayers/1.0/examples/markersTextLayer.html
r562 r786 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } … … 24 24 map.addLayer(newl); 25 25 26 map.setCenter(new OpenLayers.LonLat(0, 0), 0);27 26 map.addControl(new OpenLayers.Control.LayerSwitcher()); 27 map.zoomToFullExtent(); 28 28 } 29 29 // --> branches/openlayers/1.0/examples/markerss.html
r630 r786 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } … … 35 35 map.addLayer(markers); 36 36 37 map.setCenter(new OpenLayers.LonLat(0, 0), 0);38 37 map.addControl(new OpenLayers.Control.LayerSwitcher()); 38 map.zoomToFullExtent(); 39 39 } 40 40 branches/openlayers/1.0/examples/notile.html
r675 r786 3 3 <style type="text/css"> 4 4 #map { 5 width: 800px;6 height: 475px;5 width: 512px; 6 height: 512px; 7 7 border: 1px solid black; 8 8 } … … 12 12 <!-- 13 13 function init(){ 14 var map = new OpenLayers.Map('map' );14 var map = new OpenLayers.Map('map', {maxResolution: 'auto'}); 15 15 16 16 var ol_wms = new OpenLayers.Layer.WMS.Untiled( "OpenLayers WMS", branches/openlayers/1.0/examples/popups.html
r562 r786 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } … … 21 21 map.addLayer(layer); 22 22 23 layer = new OpenLayers.Layer.WMS( "OpenLayers WMS2",24 "http://octo.metacarta.com/cgi-bin/mapserv",25 {map: '/mapdata/vmap_wms.map', layers: 'basic', format: 'image/jpeg'} );26 27 map.addLayer(layer);28 29 map.setCenter(new OpenLayers.LonLat(0, 0), 0);30 23 map.addControl(new OpenLayers.Control.LayerSwitcher()); 24 map.zoomToFullExtent(); 31 25 } 32 26 branches/openlayers/1.0/examples/tiger.html
r668 r786 3 3 <style type="text/css"> 4 4 #map { 5 width: 800px;6 height: 475px;5 width: 512px; 6 height: 512px; 7 7 border: 1px solid black; 8 8 } branches/openlayers/1.0/examples/ve.html
r592 r786 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } branches/openlayers/1.0/examples/wfs.html
r586 r786 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } … … 15 15 16 16 function init(){ 17 OpenLayers.ProxyHost = '/dev/examples/proxy.cgi?url=';18 17 map = new OpenLayers.Map('map'); 19 18 layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", … … 21 20 map.addLayer(layer); 22 21 23 layer = new OpenLayers.Layer.WFS( "O penLayers WFS",24 "http:// labs.metacarta.com/search/WFS?",25 { q: 'dolphins', maxfeatures: 10} );26 22 layer = new OpenLayers.Layer.WFS( "Owl Survey", 23 "http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?", 24 {typename: "OWLS", maxfeatures: 10}, 25 OpenLayers.Feature.WFS ); 27 26 map.addLayer(layer); 28 29 map.setCenter(new OpenLayers.LonLat(0, 0), 0);30 27 map.addControl(new OpenLayers.Control.LayerSwitcher()); 28 map.setCenter(new OpenLayers.LonLat(-100, 60), 3); 31 29 } 32 30 // --> branches/openlayers/1.0/examples/yahoo.html
r614 r786 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 }
