Changeset 1785

Show
Ignore:
Timestamp:
09/06/10 12:23:39 (17 months ago)
Author:
spf
Message:

different color for ice gates [See #34]

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/site/map.class.php

    r1744 r1785  
    137137    $this->colorWaypoints = ImageColorAllocate($this->mapImage, 230, 80, 0); 
    138138    $this->colorWaypointsArea = ImageColorAllocate($this->mapImage, 230, 120, 40); 
     139    $this->colorWaypointsIceGate = ImageColorAllocate($this->mapImage, 0, 51, 204); 
    139140    $this->colorBuoy = ImageColorAllocate($this->mapImage, 250, 150, 150); 
    140141    $this->colorWind = ImageColorAllocate($this->mapImage, 110, 130, 150); 
     
    732733                        IMG_COLOR_STYLED); 
    733734          } else { 
     735          // NOTE: icegates are only of kind 'WP_TWO_BUOYS' 
     736            $wpcolor = (($waypoint['wpformat'] & (WP_ICE_GATE_N|WP_ICE_GATE_S)) ? $this->colorWaypointsIceGate : $this->colorWaypoints); 
    734737            imageline ( $this->mapImage,  
    735738                        $wp1ProjLong, $wp1ProjLat, 
    736739                        $wp2ProjLong, $wp2ProjLat, 
    737                         $this->colorWaypoints); 
     740                        $wpcolor); 
    738741          } 
    739742        } else {