OpenLayers OpenLayers

Changeset 5980

Show
Ignore:
Timestamp:
02/03/08 21:26:26 (1 year ago)
Author:
crschmidt
Message:

Add scalebar (See #24)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/crschmidt/demo/lib/OpenLayers.js

    r5921 r5980  
    155155            "OpenLayers/Control/Panel.js", 
    156156            "OpenLayers/Control/SelectFeature.js", 
     157            "OpenLayers/Control/ScaleBar.js", 
    157158            "OpenLayers/Geometry.js", 
    158159            "OpenLayers/Geometry/Rectangle.js", 
  • sandbox/crschmidt/demo/tests/list-tests.html

    r5922 r5980  
    9191    <li>Control/test_Permalink.html</li> 
    9292    <li>Control/test_Scale.html</li> 
     93    <li>Control/test_ScaleBar.html</li> 
    9394    <li>Control/test_SelectFeature.html</li> 
    9495    <li>test_Handler.html</li> 
  • sandbox/crschmidt/demo/theme/default/style.css

    r5674 r5980  
    180180    font-size: 1px; 
    181181    filter: alpha(opacity=50); 
    182 }     
     182
     183 
     184.olControlScaleBar { 
     185    bottom: 10px; 
     186    left: 15px; 
     187    font-family: sans-serif; 
     188    color: #00008B; 
     189
     190 
     191.olControlScaleBarBar { 
     192    height: 11px; 
     193    top: 12px; 
     194    background-color: #00008B; 
     195    background-image: url('img/scalebar-bar.png'); 
     196    background-position: 0 0; 
     197    background-repeat: repeat-x; 
     198
     199 
     200.olControlScaleBarBarAlt { 
     201    height: 11px; 
     202    top: 12px; 
     203    background-color: #00008B; 
     204    background-image: url('img/scalebar-bar.png'); 
     205    background-position: 0 0; 
     206    background-repeat: repeat-x; 
     207
     208 
     209.olControlScaleBarMarkerMajor { 
     210    height: 13px; 
     211    width: 13px; 
     212    top: 12px; 
     213    background-image: url('img/scalebar-marker.png'); 
     214    background-position: 0 0; 
     215    background-repeat: no-repeat; 
     216    z-index: 5000; 
     217
     218 
     219.olControlScaleBarMarkerMinor { 
     220    height: 13px; 
     221    width: 13px; 
     222    top: 12px; 
     223    background-image: url('img/scalebar-marker.png'); 
     224    background-position: 0 0; 
     225    background-repeat: no-repeat; 
     226    z-index: 5000; 
     227
     228 
     229.olControlScaleBarNumbersBox { 
     230    height: 13px; 
     231    width: 40px; 
     232    top: 24px; 
     233    font-size: 9px; 
     234
     235 
     236.olControlScaleBarLabelBox { 
     237    height: 15px; 
     238    top: -2px; 
     239    font-size: 11px; 
     240    font-weight: bold; 
     241    letter-spacing: 0.1em; 
     242
     243 
     244.olControlScaleBarLabelBoxSingleLine { 
     245    height: 15px; 
     246    width: 35px; 
     247    top: 0px; 
     248    left: 10px; 
     249    font-size: 13px; 
     250
     251