- Timestamp:
- Mar 9, 2015, 10:22:12 AM (10 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/map.tcl
r5104 r5106 149 149 set colorramp [$layers element -as type $layer.colorramp] 150 150 if { $colorramp != "" } { 151 foreach key { url colormap } { 151 $_tree set $child "colorramp.elevdriver" "gdal" 152 $_tree set $child "colorramp.colormap" "0 0 0 0 1 1 1 1 1 1" 153 foreach key { url colormap elevdriver } { 152 154 set value [$layers get $layer.colorramp.$key] 153 $_tree set $child "colorramp.$key" $value 155 if {$value != ""} { 156 $_tree set $child "colorramp.$key" $value 157 } 154 158 } 155 159 set file [$layers get $layer.colorramp.file] -
trunk/gui/scripts/mapviewer.tcl
r5104 r5106 2271 2271 "image" { 2272 2272 array set settings { 2273 -min _level 02274 -max _level 232273 -minlevel 0 2274 -maxlevel 23 2275 2275 -opacity 1.0 2276 2276 } … … 2289 2289 SendCmd [list colormap define $cmapName $info(colorramp.colormap)] 2290 2290 SendCmd [list map layer add $layer image colorramp \ 2291 $info(colorramp.url) $info(cache) $info( profile) \2291 $info(colorramp.url) $info(cache) $info(colorramp.elevdriver) $info(profile) \ 2292 2292 $cmapName] 2293 2293 }
Note: See TracChangeset
for help on using the changeset viewer.