OpenLayers OpenLayers

Changeset 6579

Show
Ignore:
Timestamp:
03/22/08 13:26:27 (10 months ago)
Author:
crschmidt
Message:

merge trunk -r6500:HEAD

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/euzuro/pop/apidoc_config/Menu.txt

    r5553 r6579  
    6767   Group: Control  { 
    6868 
    69       File: Control  (OpenLayers/Control.js) 
    70  
    71       Group: Control  { 
    72  
    73          File: ArgParser  (no auto-title, OpenLayers/Control/ArgParser.js) 
    74          File: Attribution  (no auto-title, OpenLayers/Control/Attribution.js) 
    75          File: DragFeature  (no auto-title, OpenLayers/Control/DragFeature.js) 
    76          File: DragPan  (OpenLayers/Control/DragPan.js) 
    77          File: DrawFeature  (no auto-title, OpenLayers/Control/DrawFeature.js) 
    78          File: EditingToolbar  (no auto-title, OpenLayers/Control/EditingToolbar.js) 
    79          File: KeyboardDefaults  (no auto-title, OpenLayers/Control/KeyboardDefaults.js) 
    80          File: LayerSwitcher  (no auto-title, OpenLayers/Control/LayerSwitcher.js) 
    81          File: ModifyFeature  (no auto-title, OpenLayers/Control/ModifyFeature.js) 
    82          File: MouseDefaults  (no auto-title, OpenLayers/Control/MouseDefaults.js) 
    83          File: MousePosition  (no auto-title, OpenLayers/Control/MousePosition.js) 
    84          File: MouseToolbar  (no auto-title, OpenLayers/Control/MouseToolbar.js) 
    85          File: Navigation  (no auto-title, OpenLayers/Control/Navigation.js) 
    86          File: NavToolbar  (no auto-title, OpenLayers/Control/NavToolbar.js) 
    87          File: OverviewMap  (no auto-title, OpenLayers/Control/OverviewMap.js) 
    88          File: Panel  (no auto-title, OpenLayers/Control/Panel.js) 
    89          File: PanZoom  (no auto-title, OpenLayers/Control/PanZoom.js) 
    90          File: PanZoomBar  (no auto-title, OpenLayers/Control/PanZoomBar.js) 
    91          File: Permalink  (no auto-title, OpenLayers/Control/Permalink.js) 
    92          File: Scale  (no auto-title, OpenLayers/Control/Scale.js) 
    93          File: SelectFeature  (no auto-title, OpenLayers/Control/SelectFeature.js) 
    94          File: ZoomBox  (OpenLayers/Control/ZoomBox.js) 
    95          File: ZoomToMaxExtent  (OpenLayers/Control/ZoomToMaxExtent.js) 
    96          }  # Group: Control 
    97  
     69      File: Control  (no auto-title, OpenLayers/Control.js) 
     70      File: ArgParser  (no auto-title, OpenLayers/Control/ArgParser.js) 
     71      File: Attribution  (no auto-title, OpenLayers/Control/Attribution.js) 
     72      File: Control.Button  (no auto-title, OpenLayers/Control/Button.js) 
     73      File: DragFeature  (no auto-title, OpenLayers/Control/DragFeature.js) 
     74      File: DragPan  (no auto-title, OpenLayers/Control/DragPan.js) 
     75      File: DrawFeature  (no auto-title, OpenLayers/Control/DrawFeature.js) 
     76      File: EditingToolbar  (no auto-title, OpenLayers/Control/EditingToolbar.js) 
     77      File: KeyboardDefaults  (no auto-title, OpenLayers/Control/KeyboardDefaults.js) 
     78      File: LayerSwitcher  (no auto-title, OpenLayers/Control/LayerSwitcher.js) 
     79      File: ModifyFeature  (no auto-title, OpenLayers/Control/ModifyFeature.js) 
     80      File: MouseDefaults  (no auto-title, OpenLayers/Control/MouseDefaults.js) 
     81      File: MousePosition  (no auto-title, OpenLayers/Control/MousePosition.js) 
     82      File: MouseToolbar  (no auto-title, OpenLayers/Control/MouseToolbar.js) 
     83      File: Navigation  (no auto-title, OpenLayers/Control/Navigation.js) 
     84      File: NavigationHistory  (no auto-title, OpenLayers/Control/NavigationHistory.js) 
     85      File: NavToolbar  (no auto-title, OpenLayers/Control/NavToolbar.js) 
     86      File: OverviewMap  (no auto-title, OpenLayers/Control/OverviewMap.js) 
     87      File: Panel  (no auto-title, OpenLayers/Control/Panel.js) 
     88      File: PanZoom  (no auto-title, OpenLayers/Control/PanZoom.js) 
     89      File: PanZoomBar  (no auto-title, OpenLayers/Control/PanZoomBar.js) 
     90      File: Permalink  (no auto-title, OpenLayers/Control/Permalink.js) 
     91      File: Scale  (no auto-title, OpenLayers/Control/Scale.js) 
     92      File: ScaleLine  (no auto-title, OpenLayers/Control/ScaleLine.js) 
     93      File: SelectFeature  (no auto-title, OpenLayers/Control/SelectFeature.js) 
     94      File: ZoomBox  (no auto-title, OpenLayers/Control/ZoomBox.js) 
     95      File: ZoomToMaxExtent  (no auto-title, OpenLayers/Control/ZoomToMaxExtent.js) 
    9896      }  # Group: Control 
    9997 
     
    109107   Group: Format  { 
    110108 
    111       File: Format  (OpenLayers/Format.js) 
    112  
    113       Group: Format  { 
    114  
    115          File: GeoJSON  (no auto-title, OpenLayers/Format/GeoJSON.js) 
    116          File: GeoRSS  (no auto-title, OpenLayers/Format/GeoRSS.js) 
    117          File: GML  (no auto-title, OpenLayers/Format/GML.js) 
    118          File: JSON  (no auto-title, OpenLayers/Format/JSON.js) 
    119          File: KML  (no auto-title, OpenLayers/Format/KML.js) 
    120          File: SLD  (OpenLayers/Format/SLD.js) 
    121          File: Text  (no auto-title, OpenLayers/Format/Text.js) 
    122          File: WFS  (no auto-title, OpenLayers/Format/WFS.js) 
    123          File: WKT  (no auto-title, OpenLayers/Format/WKT.js) 
    124          File: XML  (no auto-title, OpenLayers/Format/XML.js) 
    125          }  # Group: Format 
    126  
     109      File: Format  (no auto-title, OpenLayers/Format.js) 
     110      File: GeoJSON  (no auto-title, OpenLayers/Format/GeoJSON.js) 
     111      File: GeoRSS  (no auto-title, OpenLayers/Format/GeoRSS.js) 
     112      File: GML  (no auto-title, OpenLayers/Format/GML.js) 
     113      File: JSON  (no auto-title, OpenLayers/Format/JSON.js) 
     114      File: KML  (no auto-title, OpenLayers/Format/KML.js) 
     115      File: OSM  (no auto-title, OpenLayers/Format/OSM.js) 
     116      File: SLD  (no auto-title, OpenLayers/Format/SLD.js) 
     117      File: Text  (no auto-title, OpenLayers/Format/Text.js) 
     118      File: WFS  (no auto-title, OpenLayers/Format/WFS.js) 
     119      File: WKT  (no auto-title, OpenLayers/Format/WKT.js) 
     120 
     121      Group: WMC  { 
     122 
     123         File: WMC  (no auto-title, OpenLayers/Format/WMC.js) 
     124         File: v1  (no auto-title, OpenLayers/Format/WMC/v1.js) 
     125         File: v1_0_0  (no auto-title, OpenLayers/Format/WMC/v1_0_0.js) 
     126         File: v1_1_0  (no auto-title, OpenLayers/Format/WMC/v1_1_0.js) 
     127         }  # Group: WMC 
     128 
     129      File: XML  (no auto-title, OpenLayers/Format/XML.js) 
    127130      }  # Group: Format 
    128131 
     
    150153      File: Drag  (no auto-title, OpenLayers/Handler/Drag.js) 
    151154      File: Feature  (no auto-title, OpenLayers/Handler/Feature.js) 
     155      File: Hover  (no auto-title, OpenLayers/Handler/Hover.js) 
    152156      File: Keyboard  (no auto-title, OpenLayers/Handler/Keyboard.js) 
    153157      File: MouseWheel  (no auto-title, OpenLayers/Handler/MouseWheel.js) 
     
    159163 
    160164   File: Icon  (no auto-title, OpenLayers/Icon.js) 
     165 
     166   Group: Lang  { 
     167 
     168      File: Lang  (no auto-title, OpenLayers/Lang.js) 
     169      File: Lang["de"]  (no auto-title, OpenLayers/Lang/de.js) 
     170      File: Lang["en"]  (no auto-title, OpenLayers/Lang/en.js) 
     171      File: Lang["en-CA"]  (no auto-title, OpenLayers/Lang/en-CA.js) 
     172      File: Lang["fr"]  (no auto-title, OpenLayers/Lang/fr.js) 
     173      }  # Group: Lang 
    161174 
    162175   Group: Layer  { 
     
    173186      File: Image  (no auto-title, OpenLayers/Layer/Image.js) 
    174187      File: KaMap  (no auto-title, OpenLayers/Layer/KaMap.js) 
     188      File: MapGuide  (no auto-title, OpenLayers/Layer/MapGuide.js) 
    175189      File: MapServer  (no auto-title, OpenLayers/Layer/MapServer.js) 
    176190      File: MapServer.Untiled  (no auto-title, OpenLayers/Layer/MapServer/Untiled.js) 
    177191      File: Markers  (no auto-title, OpenLayers/Layer/Markers.js) 
    178192      File: MultiMap  (no auto-title, OpenLayers/Layer/MultiMap.js) 
     193      File: PointTrack  (no auto-title, OpenLayers/Layer/PointTrack.js) 
    179194      File: SphericalMercator  (no auto-title, OpenLayers/Layer/SphericalMercator.js) 
    180195      File: Text  (no auto-title, OpenLayers/Layer/Text.js) 
     
    198213      }  # Group: Marker 
    199214 
    200    File: Projection  (no auto-title, OpenLayers/Projection.js) 
    201    File: Rule  (no auto-title, OpenLayers/Rule.js) 
    202    File: Style  (no auto-title, OpenLayers/Style.js) 
    203  
    204215   Group: Popup  { 
    205216 
    206       File: Popup  (OpenLayers/Popup.js) 
     217      File: Popup  (no auto-title, OpenLayers/Popup.js) 
    207218      File: Anchored  (no auto-title, OpenLayers/Popup/Anchored.js) 
    208219      File: AnchoredBubble  (no auto-title, OpenLayers/Popup/AnchoredBubble.js) 
    209220      }  # Group: Popup 
    210221 
     222   File: Projection  (no auto-title, OpenLayers/Projection.js) 
     223 
    211224   Group: Renderer  { 
    212225 
    213       File: Renderer  (OpenLayers/Renderer.js) 
     226      File: Renderer  (no auto-title, OpenLayers/Renderer.js) 
    214227      File: Elements  (no auto-title, OpenLayers/Renderer/Elements.js) 
    215228      File: SVG  (no auto-title, OpenLayers/Renderer/SVG.js) 
     
    217230      }  # Group: Renderer 
    218231 
     232   Group: Rule  { 
     233 
     234      File: Rule  (no auto-title, OpenLayers/Rule.js) 
     235      File: Comparison  (no auto-title, OpenLayers/Rule/Comparison.js) 
     236      File: FeatureId  (no auto-title, OpenLayers/Rule/FeatureId.js) 
     237      File: Logical  (no auto-title, OpenLayers/Rule/Logical.js) 
     238      }  # Group: Rule 
     239 
     240   File: Style  (no auto-title, OpenLayers/Style.js) 
     241   File: StyleMap  (no auto-title, OpenLayers/StyleMap.js) 
     242 
    219243   Group: Tile  { 
    220244 
     
    224248      }  # Group: Tile 
    225249 
    226    Group: Rule  { 
    227  
    228       File: Comparison  (no auto-title, OpenLayers/Rule/Comparison.js) 
    229       File: FeatureId  (no auto-title, OpenLayers/Rule/FeatureId.js) 
    230       File: Logical  (no auto-title, OpenLayers/Rule/Logical.js) 
    231       }  # Group: Rule 
    232  
    233    File: Util  (OpenLayers/Util.js) 
     250   File: Tween  (no auto-title, OpenLayers/Tween.js) 
     251   File: Util  (no auto-title, OpenLayers/Util.js) 
    234252   }  # Group: OpenLayers 
    235253 
  • sandbox/euzuro/pop/build/full.cfg

    r6402 r6579  
    1717OpenLayers/Lang/en-CA.js 
    1818OpenLayers/Lang/fr.js 
     19OpenLayers/Lang/cs-CZ.js 
  • sandbox/euzuro/pop/build/library.cfg

    r3601 r6579  
    4747OpenLayers/Renderer/VML.js 
    4848OpenLayers/Renderer.js 
     49OpenLayers/Lang/de.js 
     50OpenLayers/Lang/en-CA.js 
     51OpenLayers/Lang/fr.js 
     52OpenLayers/Lang/cs-CZ.js 
    4953 
    5054 
  • sandbox/euzuro/pop/build/lite.cfg

    r3601 r6579  
    2222Firebug/firebug.js 
    2323Firebug/firebugx.js 
     24OpenLayers/Lang/de.js 
     25OpenLayers/Lang/en-CA.js 
     26OpenLayers/Lang/fr.js 
     27OpenLayers/Lang/cs-CZ.js 
     28 
  • sandbox/euzuro/pop/doc_config/Menu.txt

    r5553 r6579  
    6767   Group: Control  { 
    6868 
    69       File: Control  (OpenLayers/Control.js) 
     69      File: Control  (no auto-title, OpenLayers/Control.js) 
    7070      File: ArgParser  (no auto-title, OpenLayers/Control/ArgParser.js) 
    7171      File: Attribution  (no auto-title, OpenLayers/Control/Attribution.js) 
     72      File: Control.Button  (no auto-title, OpenLayers/Control/Button.js) 
    7273      File: DragFeature  (no auto-title, OpenLayers/Control/DragFeature.js) 
    7374      File: DragPan  (no auto-title, OpenLayers/Control/DragPan.js) 
     
    8182      File: MouseToolbar  (no auto-title, OpenLayers/Control/MouseToolbar.js) 
    8283      File: Navigation  (no auto-title, OpenLayers/Control/Navigation.js) 
     84      File: NavigationHistory  (no auto-title, OpenLayers/Control/NavigationHistory.js) 
    8385      File: NavToolbar  (no auto-title, OpenLayers/Control/NavToolbar.js) 
    8486      File: OverviewMap  (no auto-title, OpenLayers/Control/OverviewMap.js) 
     
    8890      File: Permalink  (no auto-title, OpenLayers/Control/Permalink.js) 
    8991      File: Scale  (no auto-title, OpenLayers/Control/Scale.js) 
     92      File: ScaleLine  (no auto-title, OpenLayers/Control/ScaleLine.js) 
    9093      File: SelectFeature  (no auto-title, OpenLayers/Control/SelectFeature.js) 
    9194      File: ZoomBox  (no auto-title, OpenLayers/Control/ZoomBox.js) 
     
    105108 
    106109      File: Format  (no auto-title, OpenLayers/Format.js) 
    107  
    108       Group: Format  { 
    109  
    110          File: GeoJSON  (no auto-title, OpenLayers/Format/GeoJSON.js) 
    111          File: GeoRSS  (no auto-title, OpenLayers/Format/GeoRSS.js) 
    112          File: GML  (no auto-title, OpenLayers/Format/GML.js) 
    113          File: JSON  (no auto-title, OpenLayers/Format/JSON.js) 
    114          File: KML  (no auto-title, OpenLayers/Format/KML.js) 
    115          File: SLD  (OpenLayers/Format/SLD.js) 
    116          File: Text  (no auto-title, OpenLayers/Format/Text.js) 
    117          File: WFS  (no auto-title, OpenLayers/Format/WFS.js) 
    118          File: WKT  (no auto-title, OpenLayers/Format/WKT.js) 
    119          File: XML  (no auto-title, OpenLayers/Format/XML.js) 
    120          }  # Group: Format 
    121  
     110      File: GeoJSON  (no auto-title, OpenLayers/Format/GeoJSON.js) 
     111      File: GeoRSS  (no auto-title, OpenLayers/Format/GeoRSS.js) 
     112      File: GML  (no auto-title, OpenLayers/Format/GML.js) 
     113      File: JSON  (no auto-title, OpenLayers/Format/JSON.js) 
     114      File: KML  (no auto-title, OpenLayers/Format/KML.js) 
     115      File: OSM  (no auto-title, OpenLayers/Format/OSM.js) 
     116      File: SLD  (no auto-title, OpenLayers/Format/SLD.js) 
     117      File: Text  (no auto-title, OpenLayers/Format/Text.js) 
     118      File: WFS  (no auto-title, OpenLayers/Format/WFS.js) 
     119      File: WKT  (no auto-title, OpenLayers/Format/WKT.js) 
     120 
     121      Group: WMC  { 
     122 
     123         File: WMC  (no auto-title, OpenLayers/Format/WMC.js) 
     124         File: v1  (no auto-title, OpenLayers/Format/WMC/v1.js) 
     125         File: v1_0_0  (no auto-title, OpenLayers/Format/WMC/v1_0_0.js) 
     126         File: v1_1_0  (no auto-title, OpenLayers/Format/WMC/v1_1_0.js) 
     127         }  # Group: WMC 
     128 
     129      File: XML  (no auto-title, OpenLayers/Format/XML.js) 
    122130      }  # Group: Format 
    123131 
     
    145153      File: Drag  (no auto-title, OpenLayers/Handler/Drag.js) 
    146154      File: Feature  (no auto-title, OpenLayers/Handler/Feature.js) 
     155      File: Hover  (no auto-title, OpenLayers/Handler/Hover.js) 
    147156      File: Keyboard  (no auto-title, OpenLayers/Handler/Keyboard.js) 
    148157      File: MouseWheel  (no auto-title, OpenLayers/Handler/MouseWheel.js) 
     
    154163 
    155164   File: Icon  (no auto-title, OpenLayers/Icon.js) 
     165 
     166   Group: Lang  { 
     167 
     168      File: Lang  (no auto-title, OpenLayers/Lang.js) 
     169      File: Lang["de"]  (no auto-title, OpenLayers/Lang/de.js) 
     170      File: Lang["en"]  (no auto-title, OpenLayers/Lang/en.js) 
     171      File: Lang["en-CA"]  (no auto-title, OpenLayers/Lang/en-CA.js) 
     172      File: Lang["fr"]  (no auto-title, OpenLayers/Lang/fr.js) 
     173      }  # Group: Lang 
    156174 
    157175   Group: Layer  { 
     
    168186      File: Image  (no auto-title, OpenLayers/Layer/Image.js) 
    169187      File: KaMap  (no auto-title, OpenLayers/Layer/KaMap.js) 
     188      File: MapGuide  (no auto-title, OpenLayers/Layer/MapGuide.js) 
    170189      File: MapServer  (no auto-title, OpenLayers/Layer/MapServer.js) 
    171190      File: MapServer.Untiled  (no auto-title, OpenLayers/Layer/MapServer/Untiled.js) 
    172191      File: Markers  (no auto-title, OpenLayers/Layer/Markers.js) 
    173192      File: MultiMap  (no auto-title, OpenLayers/Layer/MultiMap.js) 
     193      File: PointTrack  (no auto-title, OpenLayers/Layer/PointTrack.js) 
    174194      File: SphericalMercator  (no auto-title, OpenLayers/Layer/SphericalMercator.js) 
    175195      File: Text  (no auto-title, OpenLayers/Layer/Text.js) 
     
    193213      }  # Group: Marker 
    194214 
    195    File: Projection  (no auto-title, OpenLayers/Projection.js) 
    196    File: Rule  (no auto-title, OpenLayers/Rule.js) 
    197    File: Style  (no auto-title, OpenLayers/Style.js) 
    198  
    199215   Group: Popup  { 
    200216 
    201       File: Popup  (OpenLayers/Popup.js) 
     217      File: Popup  (no auto-title, OpenLayers/Popup.js) 
    202218      File: Anchored  (no auto-title, OpenLayers/Popup/Anchored.js) 
    203219      File: AnchoredBubble  (no auto-title, OpenLayers/Popup/AnchoredBubble.js) 
    204220      }  # Group: Popup 
    205221 
     222   File: Projection  (no auto-title, OpenLayers/Projection.js) 
     223 
    206224   Group: Renderer  { 
    207225 
    208       File: Renderer  (OpenLayers/Renderer.js) 
     226      File: Renderer  (no auto-title, OpenLayers/Renderer.js) 
    209227      File: Elements  (no auto-title, OpenLayers/Renderer/Elements.js) 
    210228      File: SVG  (no auto-title, OpenLayers/Renderer/SVG.js) 
     
    212230      }  # Group: Renderer 
    213231 
     232   Group: Rule  { 
     233 
     234      File: Rule  (no auto-title, OpenLayers/Rule.js) 
     235      File: Comparison  (no auto-title, OpenLayers/Rule/Comparison.js) 
     236      File: FeatureId  (no auto-title, OpenLayers/Rule/FeatureId.js) 
     237      File: Logical  (no auto-title, OpenLayers/Rule/Logical.js) 
     238      }  # Group: Rule 
     239 
     240   File: Style  (no auto-title, OpenLayers/Style.js) 
     241   File: StyleMap  (no auto-title, OpenLayers/StyleMap.js) 
     242 
    214243   Group: Tile  { 
    215244 
     
    219248      }  # Group: Tile 
    220249 
    221    Group: Rule  { 
    222  
    223       File: Comparison  (no auto-title, OpenLayers/Rule/Comparison.js) 
    224       File: FeatureId  (no auto-title, OpenLayers/Rule/FeatureId.js) 
    225       File: Logical  (no auto-title, OpenLayers/Rule/Logical.js) 
    226       }  # Group: Rule 
    227  
    228    File: Util  (OpenLayers/Util.js) 
     250   File: Tween  (no auto-title, OpenLayers/Tween.js) 
     251   File: Util  (no auto-title, OpenLayers/Util.js) 
    229252   }  # Group: OpenLayers 
    230253 
  • sandbox/euzuro/pop/examples/click.html

    r6500 r6579  
    1313        <script src="../lib/OpenLayers.js"></script> 
    1414        <script type="text/javascript"> 
     15OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {                 
     16                defaultHandlerOptions: { 
     17                    'single': true, 
     18                    'double': false, 
     19                    'pixelTolerance': 0, 
     20                    'stopSingle': false, 
     21                    'stopDouble': false 
     22                }, 
     23 
     24                initialize: function(options) { 
     25                    this.handlerOptions = OpenLayers.Util.extend( 
     26                        {}, this.defaultHandlerOptions 
     27                    ); 
     28                    OpenLayers.Control.prototype.initialize.apply( 
     29                        this, arguments 
     30                    );  
     31                    this.handler = new OpenLayers.Handler.Click( 
     32                        this, { 
     33                            'click': this.trigger, 
     34                        }, this.handlerOptions 
     35                    ); 
     36                },  
     37 
     38                trigger: function(e) { 
     39                    var lonlat = map.getLonLatFromViewPortPx(e.xy); 
     40                    alert("You clicked near " + lonlat.lat + " N, " + 
     41                                              + lonlat.lon + " E"); 
     42                }, 
     43 
     44            }); 
    1545            var map; 
    1646            function init(){ 
     
    3060                // map.setCenter(new OpenLayers.LonLat(0, 0), 0); 
    3161                map.zoomToMaxExtent(); 
    32                 map.events.register("click", map, function(e) { 
    33                     var lonlat = map.getLonLatFromViewPortPx(e.xy); 
    34                     alert("You clicked near " + lonlat.lat + " N, " + 
    35                                               + lonlat.lon + " E"); 
    36                 }); 
     62                 
     63                var click = new OpenLayers.Control.Click(); 
     64                map.addControl(click); 
     65                click.activate(); 
     66 
    3767            } 
    3868        </script> 
     
    4575 
    4676        <p id="shortdesc"> 
    47             This example shows the use of the register and getLonLatFromViewPortPx functions to trigger events on mouse click. 
     77            This example shows the use of the click handler and getLonLatFromViewPortPx functions to trigger events on mouse click.  
     78 
    4879        </p> 
    4980 
    5081        <div id="map"></div> 
    5182     
    52         <div id="docs"></div> 
     83        <div id="docs"> 
     84            Using the Click handler allows you to (for example) catch clicks without catching double clicks, something that standard browser events don't do for you. (Try double clicking: you'll zoom in, whereas using the browser click event, you would just get two alerts.) This example click control shows you how to use it.  
     85        </div> 
    5386    </body> 
    5487</html> 
  • sandbox/euzuro/pop/examples/hover-handler.html

    r6253 r6579  
    121121                } 
    122122 
     123                map.addControl(new OpenLayers.Control.MousePosition()); 
    123124                map.zoomToMaxExtent(); 
    124125            } 
  • sandbox/euzuro/pop/examples/layerswitcher.html

    r6500 r6579  
    1515        function init(){ 
    1616            map = new OpenLayers.Map('map', { controls: [] }); 
     17            map.addControl(new OpenLayers.Control.Navigation()); 
    1718 
    1819            map.addControl(new OpenLayers.Control.LayerSwitcher({'div':OpenLayers.Util.getElement('layerswitcher')})); 
  • sandbox/euzuro/pop/examples/tasmania/sld-tasmania.xml

    r5964 r6579  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <sld:StyledLayerDescriptor xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="www.w3.org/1999/xlink"> 
     2<sld:StyledLayerDescriptor xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink"> 
    33  <sld:NamedLayer> 
    44    <sld:Name>WaterBodies</sld:Name> 
  • sandbox/euzuro/pop/examples/wmc.html

    r6253 r6579  
    2020        OpenLayers.Util.onImageLoadErrorColor = "transparent"; 
    2121         
    22         var format = new OpenLayers.Format.WMC(); 
     22        var format = new OpenLayers.Format.WMC({'layerOptions': {buffer: 0}}); 
    2323        var doc, context, map; 
    2424         
     
    138138        <textarea id="wmc">paste WMC doc here</textarea> 
    139139    <div id="docs"> 
    140             This is an example of parsing WMC documents. 
     140            This is an example of parsing WMC documents. <br /> 
     141            The format class has a layerOptions property, which can be used 
     142            to control the default options of the layer when it is created 
     143            by the parser. 
    141144    </div> 
    142145  </body> 
  • sandbox/euzuro/pop/lib/OpenLayers/BaseTypes.js

    r6325 r6579  
    107107     *     to the tokens in the format string.  If no context is sent, the 
    108108     *     window object will be used. 
     109     * args - {Array} Optional arguments to pass to any functions found in 
     110     *     the context.  If a context property is a function, the token 
     111     *     will be replaced by the return from the function called with 
     112     *     these arguments. 
    109113     * 
    110114     * Returns: 
    111115     * {String} A string with tokens replaced from the context object. 
    112116     */ 
    113     format: function(template, context) { 
     117    format: function(template, context, args) { 
    114118        if(!context) { 
    115119            context = window; 
    116120        } 
    117121        var tokens = template.split("${"); 
    118         var item, last
     122        var item, last, replacement
    119123        for(var i=1; i<tokens.length; i++) { 
    120124            item = tokens[i]; 
    121125            last = item.indexOf("}");  
    122             if(last > 0) {  
    123                 tokens[i] = context[item.substring(0, last)] + 
    124                             item.substring(++last);  
     126            if(last > 0) { 
     127                replacement = context[item.substring(0, last)]; 
     128                if(typeof replacement == "function") { 
     129                    replacement = args ? 
     130                        replacement.apply(null, args) : 
     131                        replacement(); 
     132                } 
     133                tokens[i] = replacement + item.substring(++last);  
    125134            } else { 
    126135                tokens[i] = "${" + item; 
  • sandbox/euzuro/pop/lib/OpenLayers/Control/ScaleLine.js

    r6461 r6579  
    155155        } 
    156156 
     157        var curMapUnits = this.map.units; 
     158        var inches = OpenLayers.INCHES_PER_UNIT; 
     159 
    157160        // convert maxWidth to map units 
    158         var maxSizeData = this.maxWidth * res;   
     161        var maxSizeData = this.maxWidth * res * inches[curMapUnits];   
    159162 
    160163        // decide whether to use large or small scale units      
    161164        var topUnits; 
    162165        var bottomUnits; 
    163         if(maxSizeData > 0.1) { 
     166        if(maxSizeData > 100000) { 
    164167            topUnits = this.topOutUnits; 
    165168            bottomUnits = this.bottomOutUnits; 
     
    170173 
    171174        // and to map units units 
    172         var curMapUnits = this.map.units; 
    173         var inches = OpenLayers.INCHES_PER_UNIT; 
    174         var topMax = maxSizeData * inches[curMapUnits] / inches[topUnits]; 
    175         var bottomMax = maxSizeData * inches[curMapUnits] / inches[bottomUnits]; 
     175        var topMax = maxSizeData / inches[topUnits]; 
     176        var bottomMax = maxSizeData / inches[bottomUnits]; 
    176177 
    177178        // now trim this down to useful block length 
  • sandbox/euzuro/pop/lib/OpenLayers/Control/SelectFeature.js

    r6253 r6579  
    77 * @requires OpenLayers/Control.js 
    88 * @requires OpenLayers/Feature/Vector.js 
     9 * @requires OpenLayers/Handler/Feature.js 
    910 */ 
    1011 
  • sandbox/euzuro/pop/lib/OpenLayers/Format/GeoRSS.js

    r5837 r6579  
    165165 
    166166    /** 
    167      * Method: createGeometryFromItem 
     167     * Method: createFeatureFromItem 
    168168     * Return a feature from a GeoRSS Item. 
    169169     * 
  • sandbox/euzuro/pop/lib/OpenLayers/Format/SLD.js

    r6136 r6579  
    369369            var rule = new OpenLayers.Rule.Logical( 
    370370                    {type: OpenLayers.Rule.Logical.NOT}); 
    371             rule.rules.push(this.parseFilter(filter[0])); 
     371            var filters = filter[0].childNodes;  
     372            for (var i=0; i<filters.length; i++) { 
     373                if (filters[i].nodeType == 1) { 
     374                    rule.rules.push(this.parseFilter(filters[i])); 
     375                } 
     376            } 
    372377            return rule; 
    373378        } 
  • sandbox/euzuro/pop/lib/OpenLayers/Format/WMC.js

    r6402 r6579  
    2727     */ 
    2828    version: null, 
     29 
     30    /** 
     31     * Property: layerOptions 
     32     * {Object} Default options for layers created by the parser. These 
     33     *     options are overridden by the options which are read from the  
     34     *     capabilities document. 
     35     */ 
     36    layerOptions: null,  
    2937     
    3038    /** 
     
    8189            ]; 
    8290            if(!format) { 
    83                 throw "Can't find a WMS capabilities parser for version " + 
     91                throw "Can't find a WMC parser for version " + 
    8492                      version; 
    8593            } 
  • sandbox/euzuro/pop/lib/OpenLayers/Format/WMC/v1.js

    r6402 r6579  
    194194     */ 
    195195    getLayerFromInfo: function(layerInfo) { 
     196        var options = layerInfo.options; 
     197        if (this.layerOptions) { 
     198            OpenLayers.Util.applyDefaults(options, this.layerOptions); 
     199        } 
    196200        var layer = new OpenLayers.Layer.WMS( 
    197201            layerInfo.title, 
    198202            layerInfo.href, 
    199203            layerInfo.params, 
    200             layerInfo.options 
     204            options 
    201205        ); 
    202206        return layer; 
  • sandbox/euzuro/pop/lib/OpenLayers/Handler/Feature.js

    r5976 r6579  
    3434    /** 
    3535     * Property: feature 
    36      * {<OpenLayers.Feature.Vector>} The feature currently being handled. 
     36     * {<OpenLayers.Feature.Vector>} The last feature that was hovered. 
    3737     */ 
    3838    feature: null, 
     
    247247                    this.triggerCallback(type, 'out', [this.lastFeature]); 
    248248                } 
     249                // next time the mouse goes in a feature whose geometry type 
     250                // doesn't match we don't want to call the 'out' callback 
     251                // again, so let's set this.feature to null so that 
     252                // previouslyIn will evaluate to false the next time 
     253                // we enter handle. Yes, a bit hackish... 
     254                this.feature = null; 
    249255            } 
    250256        } else { 
  • sandbox/euzuro/pop/lib/OpenLayers/Handler/MouseWheel.js

    r6417 r6579  
    105105            if (!overLayerDiv) { 
    106106                for(var i=0; i < this.map.layers.length; i++) { 
    107                     if (elem == this.map.layers[i].div) {  
     107                    // Are we in the layer div? Note that we have two cases 
     108                    // here: one is to catch EventPane layers, which have a  
     109                    // pane above the layer (layer.pane) 
     110                    if (elem == this.map.layers[i].div  
     111                        || elem == this.map.layers[i].pane) {  
    108112                        overLayerDiv = true; 
    109113                        break; 
  • sandbox/euzuro/pop/lib/OpenLayers/Layer.js

    r6461 r6579  
    605605     */ 
    606606    display: function(display) { 
     607        var inRange = this.calculateInRange(); 
    607608        if (display != (this.div.style.display != "none")) { 
    608             this.div.style.display = (display) ? "block" : "none"; 
     609            this.div.style.display = (display && inRange) ? "block" : "none"; 
    609610        } 
    610611    }, 
  • sandbox/euzuro/pop/lib/OpenLayers/Layer/FixedZoomLevels.js

    r5614 r6579  
    111111                this.resolutions[resolutionsIndex++] = this.RESOLUTIONS[i];             
    112112            } 
    113         }         
     113            this.maxResolution = this.resolutions[0]; 
     114            this.minResolution = this.resolutions[this.resolutions.length - 1]; 
     115        }        
    114116    }, 
    115117     
  • sandbox/euzuro/pop/lib/OpenLayers/Layer/GML.js

    r6500 r6579  
    132132        var doc = request.responseXML; 
    133133         
    134         if (!doc) { 
     134        if (!doc || !doc.documentElement) { 
    135135            doc = request.responseText; 
    136136        } 
  • sandbox/euzuro/pop/lib/OpenLayers/Layer/GeoRSS.js

    r6500 r6579  
    132132    parseData: function(ajaxRequest) { 
    133133        var doc = ajaxRequest.responseXML; 
    134         if (!doc) { 
    135             doc = OpenLayers.parseXMLString(ajaxRequest.responseText); 
     134        if (!doc || !doc.documentElement) { 
     135            doc = OpenLayers.Format.XML.prototype.read(ajaxRequest.responseText); 
    136136        } 
    137137         
  • sandbox/euzuro/pop/lib/OpenLayers/Renderer/Elements.js

    r6325 r6579  
    177177        var options = { 
    178178            'isFilled': true, 
    179             'isStroked': true 
     179            'isStroked': !!style.strokeWidth 
    180180        }; 
    181181        switch (geometry.CLASS_NAME) { 
  • sandbox/euzuro/pop/lib/OpenLayers/Renderer/SVG.js

    r6402 r6579  
    193193        style = style  || node._style; 
    194194        options = options || node._options; 
    195         var x = node.getAttributeNS(null, "cx"); 
    196         // if x equals "", the node is outside the valid range 
    197         if (node._geometryClass == "OpenLayers.Geometry.Point" && x) { 
     195        var r = parseFloat(node.getAttributeNS(null, "r")); 
     196        if (node._geometryClass == "OpenLayers.Geometry.Point" && r) { 
    198197            if (style.externalGraphic) { 
    199                 x = parseFloat(x); 
     198                var x = parseFloat(node.getAttributeNS(null, "cx")); 
    200199                var y = parseFloat(node.getAttributeNS(null, "cy")); 
    201200                 
  • sandbox/euzuro/pop/lib/OpenLayers/Style.js

    <
    r6402 r6579  
    116116     */ 
    117117    createSymbolizer: function(feature) { 
    118         var style = OpenLayers.Util.extend({}, this.defaultStyle); 
     118        var style = this.createLiterals( 
     119            OpenLayers.Util.extend({}, this.defaultStyle), feature); 
    119120         
    120121        var rules = this.rules; 
     
    174175        var symbolizer = rule.symbolizer[symbolizerPrefix] || rule.symbolizer; 
    175176 
    176         var context = this.context || feature.attributes || feature.data; 
    177          
    178177        // merge the style with the current style 
    179178        return this.createLiterals( 
    180                 OpenLayers.Util.extend(style, symbolizer), context); 
     179                OpenLayers.Util.extend(style, symbolizer), feature); 
    181180    }, 
    182181     
     
    189188     * style   - {Object} style to create literals for. Will be modified 
    190189     *           inline. 
    191      * context - {Object} context to take property values from. Defaults to 
    192      *           feature.attributes (or feature.data, if attributes are not 
    193      *           available) 
     190     * feature - {Object} 
    194191     *  
    195192     * Returns: 
    196193     * {Object} the modified style 
    197194     */ 
    198