OpenLayers OpenLayers

Changeset 7912

Show
Ignore:
Timestamp:
08/31/08 19:45:17 (3 months ago)
Author:
edgemaster
Message:

Merge from trunk - svn merge -r 7419:HEAD trunk/ openlayers/

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/edgemaster/openlayers/build/full.cfg

    r7419 r7912  
    2020OpenLayers/Lang/it.js 
    2121OpenLayers/Lang/nb.js 
     22OpenLayers/Lang/nl.js 
    2223OpenLayers/Lang/pt-BR.js 
    2324OpenLayers/Lang/sv-SE.js 
     25OpenLayers/Lang/zh-TW.js 
     26OpenLayers/Lang/zh-CN.js 
  • sandbox/edgemaster/openlayers/build/library.cfg

    r7419 r7912  
    5353OpenLayers/Lang/it.js 
    5454OpenLayers/Lang/nb.js 
     55OpenLayers/Lang/nl.js 
    5556OpenLayers/Lang/pt-BR.js 
    5657OpenLayers/Lang/sv-SE.js 
     58OpenLayers/Lang/zh-TW.js 
     59OpenLayers/Lang/zh-CN.js 
    5760 
     61 
  • sandbox/edgemaster/openlayers/build/lite.cfg

    r7419 r7912  
    2020 
    2121[exclude] 
    22 Firebug/firebug.js 
    23 Firebug/firebugx.js 
    24 OpenLayers/Lang/cs-CZ.js 
    25 OpenLayers/Lang/de.js 
    26 OpenLayers/Lang/en-CA.js 
    27 OpenLayers/Lang/fr.js 
    28 OpenLayers/Lang/it.js 
    29 OpenLayers/Lang/pt-BR.js 
    30 OpenLayers/Lang/sv-SE.js 
    3122 
     23 
  • sandbox/edgemaster/openlayers/doc/authors.txt

    r7419 r7912  
    2929Erik Uzureau 
    3030Ivan Willig 
     31Thomas Wood 
    3132Bill Woodall 
    3233Steve Woodbridge 
  • sandbox/edgemaster/openlayers/examples/baseLayers.html

    r7330 r7912  
    1717        <!-- <script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxTS6gjckBmeABOGXIUiOiZObZESPg'></script>--> 
    1818        <script type="text/javascript" src="http://clients.multimap.com/API/maps/1.1/metacarta_04"></script> 
    19         <script src='http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js'></script> 
     19        <script src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script> 
    2020        <script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=euzuro-openlayers"></script> 
    2121        <script src="../lib/OpenLayers.js"></script> 
  • sandbox/edgemaster/openlayers/examples/editingtoolbar-outside.html

    r7330 r7912  
    4343  <body onload="init()"> 
    4444    <h1 id="title">OpenLayers EditingToolbar Outside Viewport</h1> 
     45    <p id="shortdesc"> 
     46        Display an editing toolbar panel outside the map viewport. 
     47    </p> 
    4548    <div id="map" class="smallmap"></div> 
    4649    <div id="panel" class="olControlEditingToolbar"></div> 
  • sandbox/edgemaster/openlayers/examples/georss-flickr.html

    r7330 r7912  
    4747            style.addRules([rule, elseRule]); 
    4848             
    49             // Create a layer with a style map.  Giving the style map keys 
    50             // for "default" and "select" rendering intent. 
    51             markerLayer = new OpenLayers.Layer.Vector("", { 
     49            // Create a GML layer with GeoRSS format and a style map. 
     50            markerLayer = new OpenLayers.Layer.GML("Some images from Flickr", 
     51                                                   "xml/georss-flickr.xml", { 
     52                format: OpenLayers.Format.GeoRSS, 
     53                formatOptions: { 
     54                    // adds the thumbnail attribute to the feature 
     55                    createFeatureFromItem: function(item) { 
     56                        var feature = OpenLayers.Format.GeoRSS.prototype 
     57                                .createFeatureFromItem.apply(this, arguments); 
     58                        feature.attributes.thumbnail = 
     59                                this.getElementsByTagNameNS( 
     60                                item, "*", "thumbnail")[0].getAttribute("url"); 
     61                        return feature; 
     62                    } 
     63                }, 
     64                // Giving the style map keys for "default" and "select" 
     65                // rendering intent, to make the image larger when selected 
    5266                styleMap: new OpenLayers.StyleMap({ 
    5367                    "default": style, 
     
    7690             
    7791            popupControl.activate(); 
    78              
    79             OpenLayers.loadURL("xml/georss-flickr.xml", null, window, afterload); 
    80              
    81         } 
    82          
    83         function afterload(req) { 
    84             // extended version of OpenLayers.Format.GeoRSS.createFeatureFromItem; 
    85             // adds the thumbnail attribute to the feature 
    86             function createFeatureFromItem(item) { 
    87                 var feature = OpenLayers.Format.GeoRSS.prototype 
    88                         .createFeatureFromItem.apply(this, arguments); 
    89                 feature.attributes.thumbnail = 
    90                         this.getElementsByTagNameNS( 
    91                         item, "*", "thumbnail")[0].getAttribute("url"); 
    92                 return feature; 
    93             } 
    94  
    95             var store = new OpenLayers.Format.GeoRSS({ 
    96                     createFeatureFromItem: createFeatureFromItem}); 
    97  
    98             rss = store.read(req.responseText); 
    99  
    100             markerLayer.setName("Some images from Flickr"); 
    101             markerLayer.addFeatures(rss); 
    10292        } 
    10393    </script> 
  • sandbox/edgemaster/openlayers/examples/intersects.html

    r7330 r7912  
    162162    <div id="leftcol"> 
    163163        <h1 id="title">OpenLayers Geometry Intersection Example</h1> 
     164        <p id="shortdesc"> 
     165            Use of geometry.intersects method for testing geometry intersections. 
     166        </p> 
    164167        <div id="map" class="smallmap"></div> 
    165168        <div id="input"> 
  • sandbox/edgemaster/openlayers/examples/mapguide.html

    r7330 r7912  
    11<html xmlns="http://www.w3.org/1999/xhtml"> 
    22  <head> 
     3    <title>OpenLayers MapGuide Layer Example</title> 
     4    <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
    35    <link rel="stylesheet" href="style.css" type="text/css" /> 
    46    <style type="text/css"> 
     
    105107  </head> 
    106108  <body onload="initUntiled(); initTiled()"> 
     109    <h1 id="title">MapGuide Layer Example</h1> 
     110 
     111    <div id="tags"> 
     112    </div> 
     113 
     114    <p id="shortdesc"> 
     115        Demonstrates how to create MapGuide tiled and untiled layers. 
     116    </p> 
     117 
    107118    <p>If prompted for a password, username is Anonymous and an empty password</p> 
    108119    <div id="map" class="smallmap"></div> 
  • sandbox/edgemaster/openlayers/examples/modify-feature.html

    r7330 r7912  
    3030            map.addControl(new OpenLayers.Control.MousePosition()); 
    3131             
    32             var modifyOptions = { 
    33                 onModificationStart: function(feature) { 
    34                     OpenLayers.Console.log("start modifying", feature.id); 
    35                 }, 
    36                 onModification: function(feature) { 
    37                     OpenLayers.Console.log("modified", feature.id); 
    38                 }, 
    39                 onModificationEnd: function(feature) { 
    40                     OpenLayers.Console.log("end modifying", feature.id); 
    41                 }, 
    42                 onDelete: function(feature) { 
    43                     OpenLayers.Console.log("delete", feature.id); 
    44                 } 
    45             }; 
     32            function report(event) { 
     33                OpenLayers.Console.log(event.type, event.feature.id); 
     34            } 
     35            vectors.events.on({ 
     36                "beforefeaturemodified": report, 
     37                "featuremodified": report, 
     38                "afterfeaturemodified": report 
     39            }); 
    4640            controls = { 
    4741                point: new OpenLayers.Control.DrawFeature(vectors, 
     
    5448                            OpenLayers.Handler.RegularPolygon, 
    5549                            {handlerOptions: {sides: 5}}), 
    56                 modify: new OpenLayers.Control.ModifyFeature(vectors, 
    57                                                              modifyOptions) 
     50                modify: new OpenLayers.Control.ModifyFeature(vectors) 
    5851            }; 
    5952             
  • sandbox/edgemaster/openlayers/examples/navigation-history.html

    r7330 r7912  
    1818            var map, nav, panel; 
    1919 
    20             // preload images if you care 
    21             var preload = [ 
    22                 "../theme/default/img/view_previous_on.png", 
    23                 "../theme/default/img/view_next_on.png" 
    24             ]; 
    25             var img = new Array(preload.length); 
    26             for(var i=0; i<preload.length; ++i) { 
    27                 img[i] = new Image(); 
    28                 img[i].src = preload[i]; 
    29             } 
    30              
    31             function init(){ 
     20            function init() { 
    3221                map = new OpenLayers.Map('map'); 
    3322 
     
    4938                map.addLayer(layer); 
    5039                map.zoomToMaxExtent(); 
    51  
    52  
    5340            } 
    5441        </script> 
  • sandbox/edgemaster/openlayers/examples/popupMatrix.html

    r7330 r7912  
    880880 
    881881        <!-- preloading these images so the autosize will work correctly --> 
    882         <img src="small.jpg" style="position:absolute; top:-5000px; left: -5000px"></img> 
    883882        <img src="wideshort.jpg" style="position:absolute; top:-5000px; left: -5000px"></img> 
    884883        <img src="widelong.jpg" style="position:absolute; top:-5000px; left: -5000px"></img> 
    885884        <img src="thinlong.jpg" style="position:absolute; top:-5000px; left: -5000px"></img> 
     885 
     886       <p> All of the images in this file a pre-cached, meaning they are  
     887           loaded immediately when you load the page (they are just placed  
     888           far offscreen, that's why you don't see them).  
     889       </p> 
     890       <br>     
     891       <p> The only image that is *not* preloaded is small.jpg, the brazilian 
     892           flag. We do this in order to test out to make sure that our auto-sizing 
     893             code does in fact activate itself as the images load. To verify  
     894             this, clear your cache and reload this example page. Click on  
     895             any of the markers in the 'AutoSize' row. If the popup autosizes 
     896             to correctly contain the entire flag: golden. If the popup is  
     897             tiny and you can only see a corner of it, then this code is broken. 
     898        </p> 
    886899 
    887900      <br/>       
  • sandbox/edgemaster/openlayers/examples/rotate-features.html

    r7330 r7912  
    7878            var center = new OpenLayers.Feature.Vector(origin, null, style); 
    7979            vectorLayer.addFeatures([center]); 
    80             window.setInterval(rotateFeature, 100, 
    81                                pointFeature, 360 / 20, origin)
    82             window.setInterval(rotateFeature, 100, 
    83                                lineFeature, 360 / 40, origin)
    84             window.setInterval(rotateFeature, 100, 
    85                                polygonFeature, -360 / 20, origin)
     80            window.setInterval(function() {rotateFeature( 
     81                               pointFeature, 360 / 20, origin)}, 100)
     82            window.setInterval(function() {rotateFeature( 
     83                               lineFeature, 360 / 40, origin)}, 100)
     84            window.setInterval(function(){rotateFeature( 
     85                               polygonFeature, -360 / 20, origin)}, 100)
    8686        } 
    8787 
  • sandbox/edgemaster/openlayers/examples/select-feature.html

    r7330 r7912  
    2424            map.addLayers([wmsLayer, vectors]); 
    2525            map.addControl(new OpenLayers.Control.LayerSwitcher()); 
    26             map.addControl(new OpenLayers.Control.MousePosition()); 
    2726             
    2827            drawControls = { 
     
    4140                        clickout: false, toggle: false, 
    4241                        multiple: false, hover: false, 
     42                        toggleKey: "ctrlKey", // ctrl key removes from selection 
     43                        multipleKey: "shiftKey", // shift key adds to selection 
     44                        box: true 
     45                    } 
     46                ), 
     47                selecthover: new OpenLayers.Control.SelectFeature( 
     48                    vectors, 
     49                    { 
     50                        multiple: false, hover: true, 
    4351                        toggleKey: "ctrlKey", // ctrl key removes from selection 
    4452                        multipleKey: "shiftKey" // shift key adds to selection 
     
    7078            var hover = document.getElementById("hover").checked; 
    7179            drawControls.select.hover = hover; 
    72             if(hover && drawControls.select.active) { 
    73                 // turn on/off to clear feature property of handler 
     80            drawControls.select.box = document.getElementById("box").checked; 
     81            if(drawControls.select.active) { 
    7482                drawControls.select.deactivate(); 
    7583                drawControls.select.activate(); 
     
    107115        </li> 
    108116        <li> 
     117            <input type="radio" name="type" value="selecthover" id="selecthoverToggle" 
     118                   onclick="toggleControl(this);" /> 
     119            <label for="selecthoverToggle">Select features on hover</label> 
     120        </li> 
     121        <li> 
    109122            <input type="radio" name="type" value="select" id="selectToggle" 
    110123                   onclick="toggleControl(this);" /> 
     
    112125            <ul> 
    113126                <li> 
     127                    <input id="box" type="checkbox" checked="checked" 
     128                           name="box" onchange="update()" /> 
     129                    <label for="box">select features in a box</label> 
     130                </li> 
     131                <li> 
    114132                    <input id="clickout" type="checkbox" 
    115133