OpenLayers OpenLayers

Changeset 7251

Show
Ignore:
Timestamp:
05/22/08 07:31:56 (6 months ago)
Author:
ahocevar
Message:

merge -r6847:HEAD from trunk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/topp/geoext/build/README.txt

    r1424 r7251  
    55 
    66     cd build 
    7      ./build.sh 
     7     ./build.py 
    88     cd .. 
    99 
  • sandbox/topp/geoext/examples/GMLParser.html

    r6524 r7251  
    11<html xmlns="http://www.w3.org/1999/xhtml"> 
    22  <head> 
    3       <title>OpenLayers GML Parser</title> 
     3    <title>OpenLayers GML Parser</title> 
    44    <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
    5     <style type="text/css"> 
    6         #map { 
    7             width: 800px; 
    8             height: 475px; 
    9             border: 1px solid black; 
    10         } 
    11     </style> 
     5    <link rel="stylesheet" href="style.css" type="text/css" /> 
    126    <script src="../lib/OpenLayers.js"></script> 
    137    <script type="text/javascript"> 
  • sandbox/topp/geoext/examples/KMLParser.html

    r6524 r7251  
    22  <head> 
    33    <title>OpenLayers KML Parser Example</title> 
     4    <link rel="stylesheet" href="style.css" type="text/css" /> 
    45    <script src="../lib/OpenLayers.js"></script> 
    56    <script type="text/javascript"> 
  • sandbox/topp/geoext/examples/accessible.html

    r6524 r7251  
    33        <title>OpenLayers Accessible Example</title> 
    44        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
    5          
     5        <link rel="stylesheet" href="style.css" type="text/css" /> 
    66        <style type="text/css"> 
    7             #map { 
    8                 width: 512px; 
    9                 height: 512px; 
    10                 border: 1px solid #eee; 
    11             } 
    127            table { 
    138                border: 1 px solid white; 
     
    9186                        </a> 
    9287                    </td> 
    93                     <td id="map"></td> 
     88                    <td id="map" class="smallmap"></td> 
    9489                    <td> 
    9590                        <a href="javascript: void map.pan(map.getSize().w / 4, 0);" 
  • sandbox/topp/geoext/examples/animated_panning.html

    r6524 r7251  
    33    <title>Animated Panning of the Map via map.panTo</title> 
    44    <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
    5     <style type="text/css"> 
    6         #map { 
    7             width: 512px; 
    8             height: 256px; 
    9             border: 1px solid black; 
    10         } 
    11         #map2 { 
    12             width: 512px; 
    13             height: 256px; 
    14             border: 1px solid black; 
    15         } 
    16     </style> 
     5    <link rel="stylesheet" href="style.css" type="text/css" /> 
    176    <script src="../lib/OpenLayers.js"></script> 
    187    <script type="text/javascript"> 
     
    8776    <div id="tags">map.panTo</div> 
    8877    <div id="shortdesc">Show animated panning effects in the map</div> 
    89     <div id="map"></div> 
     78    <div id="map" class="smallmap"></div> 
    9079    <div id="docs"> 
    9180        <p>This is an example of transition effects. If the new random center is in the current extent, the map will pan smoothly. <br /> 
     
    9584    </div> 
    9685    <button onclick="setCenterInterval()">Start/stop random recenter</button> 
    97     <div id="map2"></div> 
     86    <div id="map2" class="smallmap"></div> 
    9887    <div>     
    9988    <p>To turn off Animated Panning, create a map with an panMethod set to 
  • sandbox/topp/geoext/examples/attribution.html

    r6524 r7251  
    33        <title>OpenLayers Attribution Example</title> 
    44        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
     5        <link rel="stylesheet" href="style.css" type="text/css" /> 
     6        <script src="../lib/OpenLayers.js"></script> 
    57 
    6         <style type="text/css"> 
    7             #map { 
    8                 width: 512px; 
    9                 height: 512px; 
    10                 border: 1px solid black; 
    11             } 
    12         </style> 
    13         <script src="../lib/OpenLayers.js"></script> 
    148        <script type="text/javascript"> 
    159            var map; 
     
    2115                    {'attribution': 'Provided by <a href="http://labs.metacarta.com/">MetaCarta</a>'}); 
    2216 
    23             var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic", 
    24                 "http://t1.hypercube.telascience.org/cgi-bin/landsat7",  
    25                 {layers: "landsat7"},{attribution:"Provided by Telascience"}); 
     17                var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic", 
     18                    "http://t1.hypercube.telascience.org/cgi-bin/landsat7",  
     19                    {layers: "landsat7"},{attribution:"Provided by Telascience"}); 
    2620 
    27                 map.addLayers([ol_wms, jpl_wms]); 
     21                var vector = new OpenLayers.Layer.Vector("Simple Geometry", 
     22                              {attribution:"Vector Attibution in 2nd arg"}); 
     23 
     24                map.addLayers([ol_wms, jpl_wms, vector]); 
     25 
    2826                map.addControl(new OpenLayers.Control.LayerSwitcher()); 
    2927                map.addControl(new OpenLayers.Control.Attribution()); 
     
    3735 
    3836        <div id="tags"> 
     37            copyright watermark logo attribution 
    3938        </div> 
    4039 
     
    4342        </p> 
    4443 
    45         <div id="map"></div> 
     44        <div id="map" class="smallmap"></div> 
    4645 
    4746        <div id="docs"> 
    4847            This is an example of how to add an attribution block to the OpenLayers window.  In order to use an 
    4948            attribution block, an attribution parameter must be set in each layer that requires attribution. In 
    50             addition, an attribution control must be added to the map. 
     49            addition, an attribution control must be added to the map, though one is added to all OpenLayers Maps by default.  
     50            Be aware that this is a layer *option*: the options hash goes in 
     51            different places depending on the layer type you are using.   
    5152        </div> 
    5253    </body> 
  • sandbox/topp/geoext/examples/baseLayers.html

    r6524 r7251  
    44         
    55        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
     6        <link rel="stylesheet" href="style.css" type="text/css" /> 
    67        <style type="text/css"> 
    7             #map { 
    8                 width: 512; 
    9                 height: 512px; 
    10                 border: 1px solid black; 
    11                 background-color: blue; 
    12             } 
    138            #controls 
    149            { 
     
    9085 
    9186        <div id="controls"> 
    92             <div id="map"></div> 
     87            <div id="map" class="smallmap"></div> 
    9388 
    9489            <div style="background-color:green" onclick="add()"> click to add a marker to the map</div> 
  • sandbox/topp/geoext/examples/boxes-vector.html

    r6463 r7251  
    33        <title>OpenLayers Boxes Example</title> 
    44        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
    5         <style type="text/css"> 
    6             #map { 
    7                 width: 512px; 
    8                 height: 512px; 
    9                 border: 1px solid black; 
    10             } 
    11         </style> 
     5        <link rel="stylesheet" href="style.css" type="text/css" /> 
    126        <script src="../lib/OpenLayers.js"></script> 
    137        <script type="text/javascript"> 
     
    5448        </p> 
    5549         
    56         <div id="map"></div> 
     50        <div id="map" class="smallmap"></div> 
    5751 
    5852        <div id="docs"></div> 
  • sandbox/topp/geoext/examples/boxes.html

    r6463 r7251  
    33        <title>OpenLayers Boxes Example</title> 
    44        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
    5         <style type="text/css"> 
    6             #map { 
    7                 width: 512px; 
    8                 height: 512px; 
    9                 border: 1px solid black; 
    10             } 
    11         </style> 
     5        <link rel="stylesheet" href="style.css" type="text/css" /> 
    126        <script src="../lib/OpenLayers.js"></script> 
    137        <script type="text/javascript"> 
     
    5347        </p> 
    5448         
    55         <div id="map"></div> 
     49        <div id="map" class="smallmap"></div> 
    5650 
    5751        <div id="docs"></div> 
  • sandbox/topp/geoext/examples/buffer.html

    r6524 r7251  
    33        <title>OpenLayers Buffer Example</title> 
    44        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
    5         <style type="text/css"> 
    6             #map { 
    7                 width: 512px; 
    8                 height: 512px; 
    9                 border: 1px solid black; 
    10             } 
    11         </style> 
     5        <link rel="stylesheet" href="style.css" type="text/css" /> 
    126        <script src="../lib/OpenLayers.js"></script> 
    137        <script type="text/javascript"> 
     
    4640        </p> 
    4741 
    48         <div id="map"></div> 
     42        <div id="map" class="smallmap"></div> 
    4943 
    5044        <div id="docs"> 
  • sandbox/topp/geoext/examples/click-handler.html

    r6463 r7251  
    44         
    55        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
     6        <link rel="stylesheet" href="style.css" type="text/css" /> 
    67        <style type="text/css"> 
    78            #map { 
     
    162163            </p> 
    163164     
    164             <div id="map"></div> 
     165            <div id="map" class="smallmap"></div> 
    165166            <p> 
    166167                The click handler can be used to gain more flexibility over handling 
  • sandbox/topp/geoext/examples/click.html

    r6574 r7251  
    44         
    55        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
    6         <style type="text/css"> 
    7             #map { 
    8                 width: 512px; 
    9                 height: 512px; 
    10                 border: 1px solid black; 
    11             } 
    12         </style> 
     6        <link rel="stylesheet" href="style.css" type="text/css" /> 
    137        <script src="../lib/OpenLayers.js"></script> 
    148        <script type="text/javascript"> 
    15 OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {                 
     9            OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {                 
    1610                defaultHandlerOptions: { 
    1711                    'single': true, 
     
    3125                    this.handler = new OpenLayers.Handler.Click( 
    3226                        this, { 
    33                             'click': this.trigger, 
     27                            'click': this.trigger 
    3428                        }, this.handlerOptions 
    3529                    ); 
     
    4034                    alert("You clicked near " + lonlat.lat + " N, " + 
    4135                                              + lonlat.lon + " E"); 
    42                 }, 
     36                } 
    4337 
    4438            }); 
     
    7973        </p> 
    8074 
    81         <div id="map"></div> 
     75        <div id="map" class="smallmap"></div> 
    8276     
    8377        <div id="docs"> 
  • sandbox/topp/geoext/examples/controls.html

    r6524 r7251  
    44 
    55        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
    6         <style type="text/css"> 
    7             #map { 
    8                 width: 512px; 
    9                 height: 512px; 
    10                 border: 1px solid black; 
    11             } 
    12         </style> 
     6        <link rel="stylesheet" href="style.css" type="text/css" /> 
    137        <script src="../lib/OpenLayers.js"></script> 
    148        <script type="text/javascript"> 
    159            var map; 
    1610            function init(){ 
    17                 map = new OpenLayers.Map('map', { controls: [] }); 
     11                map = new OpenLayers.Map('map', { 
     12                    controls: [ 
     13                        new OpenLayers.Control.PanZoomBar(), 
     14                        new OpenLayers.Control.MouseToolbar(), 
     15                        new OpenLayers.Control.LayerSwitcher({'ascending':false}), 
     16                        new OpenLayers.Control.Permalink(), 
     17                        new OpenLayers.Control.ScaleLine(), 
     18                        new OpenLayers.Control.Permalink('permalink'), 
     19                        new OpenLayers.Control.MousePosition(), 
     20                        new OpenLayers.Control.OverviewMap(), 
     21                        new OpenLayers.Control.KeyboardDefaults() 
     22                    ], 
     23                    numZoomLevels: 6 
     24                     
     25                }); 
    1826     
    19                 map.addControl(new OpenLayers.Control.PanZoomBar()); 
    20                 map.addControl(new OpenLayers.Control.MouseToolbar()); 
    21                 map.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':false})); 
    22                 map.addControl(new OpenLayers.Control.Permalink()); 
    23                 map.addControl(new OpenLayers.Control.ScaleLine()); 
    24                 map.addControl(new OpenLayers.Control.Permalink('permalink')); 
    25                 map.addControl(new OpenLayers.Control.MousePosition()); 
    26                 map.addControl(new OpenLayers.Control.OverviewMap()); 
    27                 map.addControl(new OpenLayers.Control.KeyboardDefaults()); 
    2827 
    2928                var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", 
     
    5857 
    5958        <a style="float:right" href="" id="permalink">Permalink</a> 
    60         <div id="map"></div> 
     59        <div id="map" class="smallmap"></div> 
    6160 
    6261        <div id="docs"></div> 
  • sandbox/topp/geoext/examples/custom-control-point.html

    r6524 r7251  
    11<html xmlns="http://www.w3.org/1999/xhtml"> 
    22  <head> 
    3       <title>OpenLayers Custom Control Point Examle</title> 
     3    <title>OpenLayers Custom Control Point Examle</title> 
    44    <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
    5     <style type="text/css"> 
    6         #map { 
    7             width: 512px; 
    8             height: 512px; 
    9             border: 1px solid black; 
    10         } 
    11     </style> 
     5    <link rel="stylesheet" href="style.css" type="text/css" /> 
    126    <script src="../lib/OpenLayers.js"></script> 
    137    <script type="text/javascript"> 
     
    5549      </p> 
    5650 
    57     <div id="map"></div> 
     51    <div id="map" class="smallmap"></div> 
    5852    <div id="bounds"></div> 
    5953 
  • sandbox/topp/geoext/examples/custom-control.html

    r6524 r7251  
    33        <title>Custom Control Example</title> 
    44        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
    5         <style type="text/css"> 
    6             #map { 
    7                 width: 512px; 
    8                 height: 512px; 
    9                 border: 1px solid black; 
    10             } 
    11         </style> 
     5        <link rel="stylesheet" href="style.css" type="text/css" /> 
    126        <script src="../lib/OpenLayers.js"></script> 
    137        <script type="text/javascript"> 
     
    5953        </p> 
    6054       
    61         <div id="map"></div> 
     55        <div id="map" class="smallmap"></div> 
    6256 
    6357        <div id="docs"></div> 
  • sandbox/topp/geoext/examples/custom-style.html

    r6524 r7251  
    44         
    55        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
     6        <link rel="stylesheet" href="style.css" type="text/css" /> 
    67        <style type="text/css"> 
    7             #map { 
    8                 width: 512px; 
    9                 height: 512px; 
    10                 border: 1px solid gray; 
    11             } 
    128            p { 
    139                width: 500px; 
     
    4844        </p> 
    4945 
    50         <div id="map"></div> 
     46        <div id="map" class="smallmap"></div> 
    5147 
    5248        <div id="docs"> 
  • sandbox/topp/geoext/examples/debug.html

    r6524 r7251  
    44    <head> 
    55        <title>OpenLayers Debug Example</title> 
    6          
     6        <link rel="stylesheet" href="style.css" type="text/css" />         
    77        <script src="../lib/Firebug/firebug.js"></script> 
    88        <script src="../lib/OpenLayers.js"></script> 
  • sandbox/topp/geoext/examples/doubleSetCenter.html

    r6524 r7251  
    55        <script src="../lib/OpenLayers.js"></script> 
    66        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
    7         <style type="text/css"> 
    8             #map { 
    9                 width:512px; 
    10                 height:521px; 
    11             } 
    12         </style> 
     7        <link rel="stylesheet" href="style.css" type="text/css" /> 
    138    </head> 
    149    <body> 
     
    2116        </p> 
    2217 
    23         <div id="map"></div> 
     18        <div id="map" class="smallmap"></div> 
    2419     
    2520        <script defer="defer" type="text/javascript"> 
  • sandbox/topp/geoext/examples/drag-feature.html

    r6463 r7251  
    44         
    55        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
     6        <link rel="stylesheet" href="style.css" type="text/css" /> 
    67        <style type="text/css"> 
    7             #map { 
    8                 width: 512px; 
    9                 height: 512px; 
    10                 border: 1px solid gray; 
    11             } 
    128            #controls { 
    139                width: 512px; 
     
    7369        </p> 
    7470 
    75         <div id="map"></div> 
     71        <div id="map" class="smallmap"></div> 
    7672         
    7773        <div id="controls"> 
  • sandbox/topp/geoext/examples/draw-feature.html

    r6524 r7251  
    44         
    55        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
     6        <link rel="stylesheet" href="style.css" type="text/css" /> 
    67        <style type="text/css"> 
    7             #map { 
    8                 width: 512px; 
    9                 height: 512px; 
    10                 border: 1px solid gray; 
    11             } 
    128            #controlToggle li { 
    139                list-style: none; 
     
    7571        </p> 
    7672 
    77         <div id="map"></div> 
     73        <div id="map" class="smallmap"></div> 
    7874     
    7975        <ul id="controlToggle"> 
  • sandbox/topp/geoext/examples/editingtoolbar-outside.html

    r6463 r7251  
    33  <head> 
    44    <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
     5    <link rel="stylesheet" href="style.css" type="text/css" /> 
    56    <style type="text/css"> 
    67        .olControlEditingToolbar  { 
     
    910            height: 30px;  
    1011            width: 150px; 
    11         } 
    12         #map { 
    13             width: 512px; 
    14             height: 256px; 
    15             border: 1px solid gray; 
    1612        } 
    1713    </style> 
     
    4642  </head> 
    4743  <body onload="init()"> 
    48     <h3>OpenLayers EditingToolbar Outside Viewport</h3
    49     <div id="map"></div> 
     44    <h1 id="title">OpenLayers EditingToolbar Outside Viewport</h1
     45    <div id="map" class="smallmap"></div> 
    5046    <div id="panel" class="olControlEditingToolbar"></div> 
    5147  </body> 
  • sandbox/topp/geoext/examples/editingtoolbar.html

    r6463 r7251  
    55         
    66        <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
    7         <style type="text/css"> 
    8             #map { 
    9                 width: 512px; 
    10