OpenLayers OpenLayers

Changeset 4231

Show
Ignore:
Timestamp:
09/12/07 00:37:45 (10 months ago)
Author:
euzuro
Message:

adding OpenLayers.Control.Attribution to the list of controls in the OL suite. includes example and tests. very nice. Thanks to pensyakito and cr5 for getting this together and complete. (Closes #103)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers.js

    r4221 r4231  
    126126            "OpenLayers/Handler/Keyboard.js", 
    127127            "OpenLayers/Control.js", 
     128            "OpenLayers/Control/Attribution.js", 
    128129            "OpenLayers/Control/ZoomBox.js", 
    129130            "OpenLayers/Control/ZoomToMaxExtent.js", 
  • trunk/openlayers/lib/OpenLayers/Layer.js

    r4229 r4231  
    7373     */ 
    7474    visibility: true, 
     75 
     76    /** 
     77     * APIProperty: attribution 
     78     * {String} Attribution string, displayed when an  
     79     *     <OpenLayers.Control.Attribution> has been added to the map. 
     80     */ 
     81    attribution: null,  
    7582 
    7683    /**  
  • trunk/openlayers/tests/list-tests.html

    r4221 r4231  
    6363    <li>Tile/test_WFS.html</li> 
    6464    <li>test_Control.html</li> 
     65    <li>Control/test_Attribution.html</li> 
    6566    <li>Control/test_SelectFeature.html</li> 
    6667    <li>Control/test_DragFeature.html</li> 
  • trunk/openlayers/theme/default/style.css

    r3354 r4231  
    1111    bottom: 15px;    
    1212} 
    13  
     13.olControlAttribution { 
     14    font-size: smaller;  
     15    right: 3px;  
     16    bottom: 4.5em;  
     17    position: absolute;  
     18    display: block; 
     19
    1420.olControlScale { 
    1521    right: 3px;