OpenLayers OpenLayers

Changeset 6157

Show
Ignore:
Timestamp:
02/08/08 20:27:45 (7 months ago)
Author:
tschaub
Message:

Add navigation history control. This control creates two obligate controls: next and previous. Calling trigger on the next and previous controls steps through the navigation history. r=crschmidt,ahocevar,pgiraud (closes #1240)

Files:

Legend:

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

    r6097 r6157  
    156156            "OpenLayers/Control/Panel.js", 
    157157            "OpenLayers/Control/SelectFeature.js", 
     158            "OpenLayers/Control/NavigationHistory.js", 
    158159            "OpenLayers/Geometry.js", 
    159160            "OpenLayers/Geometry/Rectangle.js", 
  • trunk/openlayers/tests/list-tests.html

    r6097 r6157  
    8484    <li>Control/test_ModifyFeature.html</li> 
    8585    <li>Control/test_MousePosition.html</li> 
     86    <li>Control/test_NavigationHistory.html</li> 
    8687    <li>Control/test_MouseToolbar.html</li> 
    8788    <li>Control/test_Navigation.html</li> 
  • trunk/openlayers/theme/default/style.css

    r6025 r6157  
    111111} 
    112112 
     113.olControlNavigationHistoryPreviousItemActive {  
     114   background-image: url("img/view_previous_on.png"); 
     115   background-repeat: no-repeat; 
     116   width:  24px; 
     117   height: 24px; 
     118} 
     119.olControlNavigationHistoryPreviousItemInactive {  
     120   background-image: url("img/view_previous_off.png"); 
     121   background-repeat: no-repeat; 
     122   width:  24px; 
     123   height: 24px; 
     124} 
     125.olControlNavigationHistoryNextItemActive {  
     126   background-image: url("img/view_next_on.png"); 
     127   background-repeat: no-repeat; 
     128   width:  24px; 
     129   height: 24px; 
     130} 
     131.olControlNavigationHistoryNextItemInactive {  
     132   background-image: url("img/view_next_off.png"); 
     133   background-repeat: no-repeat; 
     134   width:  24px; 
     135   height: 24px; 
     136} 
     137 
    113138.olControlNavToolbar .olControlNavigationItemActive {  
    114139  background-image: url("img/panning-hand-on.png");