Ignore:
Timestamp:
Sep 1, 2016, 6:00:22 PM (8 years ago)
Author:
ldelgass
Message:

Client-side protocol support for terrainPatch flag in polygon layers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/mapviewer.tcl

    r6522 r6525  
    31313131            foreach {r g b} [Color2RGB $style(-color)] {}
    31323132            foreach {strokeR strokeG strokeB} [Color2RGB $style(-strokecolor)] {}
     3133            set terrainPatch 0
     3134            if {[info exists info(terrainPatch)] && $info(terrainPatch)} {
     3135                set terrainPatch 1
     3136            }
    31333137            switch -- $info(driver) {
    31343138                "ogr" {
    31353139                    SendFiles $info(ogr.url)
    31363140                    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)]
    31383142                    } 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]
    31403144                    }
    31413145                }
     
    31463150                    }
    31473151                    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)]
    31493153                    } 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]
    31513155                    }
    31523156                }
     
    31573161                    }
    31583162                    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)]
    31603164                    } 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]
    31623166                    }
    31633167                }
     
    33133317                    -variable [itcl::scope _visibility($tag)] \
    33143318                    -command [itcl::code $this \
    3315                               SetLayerVisibility $dataobj $layer]
     3319                                  SetLayerVisibility $dataobj $layer]
    33163320                blt::table $f $row,1 $f.${ctlname}_visible -anchor w -pady 2 -cspan 2
    33173321                Rappture::Tooltip::for $f.${ctlname}_visible [join $tooltip \n]
Note: See TracChangeset for help on using the changeset viewer.