Changeset 6525 for trunk/gui/scripts/mapviewer.tcl
- Timestamp:
- Sep 1, 2016, 6:00:22 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/mapviewer.tcl
r6522 r6525 3131 3131 foreach {r g b} [Color2RGB $style(-color)] {} 3132 3132 foreach {strokeR strokeG strokeB} [Color2RGB $style(-strokecolor)] {} 3133 set terrainPatch 0 3134 if {[info exists info(terrainPatch)] && $info(terrainPatch)} { 3135 set terrainPatch 1 3136 } 3133 3137 switch -- $info(driver) { 3134 3138 "ogr" { 3135 3139 SendFiles $info(ogr.url) 3136 3140 if {[info exists style(-minrange)] && [info exists style(-maxrange)]} { 3137 SendCmd [list map layer add $tag polygon ogr {} {} $info(ogr.url) $info(cache) $r $g $b $style(-strokewidth) $strokeR $strokeG $strokeB $style(-clamping) $style(-clamptechnique) $ style(-minrange) $style(-maxrange)]3141 SendCmd [list map layer add $tag polygon ogr {} {} $info(ogr.url) $info(cache) $r $g $b $style(-strokewidth) $strokeR $strokeG $strokeB $style(-clamping) $style(-clamptechnique) $terrainPatch $style(-minrange) $style(-maxrange)] 3138 3142 } else { 3139 SendCmd [list map layer add $tag polygon ogr {} {} $info(ogr.url) $info(cache) $r $g $b $style(-strokewidth) $strokeR $strokeG $strokeB $style(-clamping) $style(-clamptechnique) ]3143 SendCmd [list map layer add $tag polygon ogr {} {} $info(ogr.url) $info(cache) $r $g $b $style(-strokewidth) $strokeR $strokeG $strokeB $style(-clamping) $style(-clamptechnique) $terrainPatch] 3140 3144 } 3141 3145 } … … 3146 3150 } 3147 3151 if {[info exists style(-minrange)] && [info exists style(-maxrange)]} { 3148 SendCmd [list map layer add $tag polygon tfs $format {} $info(tfs.url) $info(cache) $r $g $b $style(-strokewidth) $strokeR $strokeG $strokeB $style(-clamping) $style(-clamptechnique) $ style(-minrange) $style(-maxrange)]3152 SendCmd [list map layer add $tag polygon tfs $format {} $info(tfs.url) $info(cache) $r $g $b $style(-strokewidth) $strokeR $strokeG $strokeB $style(-clamping) $style(-clamptechnique) $terrainPatch $style(-minrange) $style(-maxrange)] 3149 3153 } else { 3150 SendCmd [list map layer add $tag polygon tfs $format {} $info(tfs.url) $info(cache) $r $g $b $style(-strokewidth) $strokeR $strokeG $strokeB $style(-clamping) $style(-clamptechnique) ]3154 SendCmd [list map layer add $tag polygon tfs $format {} $info(tfs.url) $info(cache) $r $g $b $style(-strokewidth) $strokeR $strokeG $strokeB $style(-clamping) $style(-clamptechnique) $terrainPatch] 3151 3155 } 3152 3156 } … … 3157 3161 } 3158 3162 if {[info exists style(-minrange)] && [info exists style(-maxrange)]} { 3159 SendCmd [list map layer add $tag polygon wfs $format $info(wfs.typename) $info(wfs.url) $info(cache) $r $g $b $style(-strokewidth) $strokeR $strokeG $strokeB $style(-clamping) $style(-clamptechnique) $ style(-minrange) $style(-maxrange)]3163 SendCmd [list map layer add $tag polygon wfs $format $info(wfs.typename) $info(wfs.url) $info(cache) $r $g $b $style(-strokewidth) $strokeR $strokeG $strokeB $style(-clamping) $style(-clamptechnique) $terrainPatch $style(-minrange) $style(-maxrange)] 3160 3164 } else { 3161 SendCmd [list map layer add $tag polygon wfs $format $info(wfs.typename) $info(wfs.url) $info(cache) $r $g $b $style(-strokewidth) $strokeR $strokeG $strokeB $style(-clamping) $style(-clamptechnique) ]3165 SendCmd [list map layer add $tag polygon wfs $format $info(wfs.typename) $info(wfs.url) $info(cache) $r $g $b $style(-strokewidth) $strokeR $strokeG $strokeB $style(-clamping) $style(-clamptechnique) $terrainPatch] 3162 3166 } 3163 3167 } … … 3313 3317 -variable [itcl::scope _visibility($tag)] \ 3314 3318 -command [itcl::code $this \ 3315 SetLayerVisibility $dataobj $layer]3319 SetLayerVisibility $dataobj $layer] 3316 3320 blt::table $f $row,1 $f.${ctlname}_visible -anchor w -pady 2 -cspan 2 3317 3321 Rappture::Tooltip::for $f.${ctlname}_visible [join $tooltip \n]
Note: See TracChangeset
for help on using the changeset viewer.