Changeset 6065 for trunk/gui


Ignore:
Timestamp:
Feb 27, 2016, 6:34:59 PM (9 years ago)
Author:
ldelgass
Message:

cleanups, comments

File:
1 edited

Legend:

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

    r6064 r6065  
    301301    }
    302302
     303    DebugTrace "main: [winfo class $itk_component(main)]"
    303304    itk_component add view {
    304305        canvas $itk_component(plotarea).view \
     
    672673        set params(-color) black
    673674    }
     675    # Add to display list
    674676    set pos [lsearch -exact $_dlist $dataobj]
    675677    if {$pos < 0} {
     
    820822            set _mapsettings(extents) $settings(extents)
    821823            set _mapsettings(camera) $settings(camera)
    822             DebugTrace "map style: $settings(style)"
    823         }
     824        }
     825        # If dataobj has the same type and projection as view, expand extents
    824826        if { $settings(extents) != "" &&
    825827             $settings(type) == $_mapsettings(type) &&
     
    21822184
    21832185#
    2184 ## camera
    2185 ##
    2186 ## This is the public camera API
    2187 ##
     2186# camera
     2187#
     2188# This is the public camera API
     2189#
    21882190itcl::body Rappture::MapViewer::camera {option args} {
    21892191    switch -- $option {
     
    28642866    set attrib [list]
    28652867    set imgIdx 0
     2868    # FIXME: This order may not match stacking order in server
    28662869    foreach dataobj [get -objects] {
    28672870        foreach layer [$dataobj layers] {
Note: See TracChangeset for help on using the changeset viewer.