Changeset 6270 for trunk/examples


Ignore:
Timestamp:
Apr 16, 2016, 12:24:12 PM (8 years ago)
Author:
ldelgass
Message:

Add update call to process rebuild event before working with placard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/mapviewer/placard/placard_disable_example.tcl

    r6268 r6270  
    7171$mapviewer add $map
    7272
     73# Make sure the MapViewer rebuilds the map
     74update idletasks
     75
    7376# disable the placard for the "stations" layer of $map
    74 # we add the delay so there is time for the layer to
    75 # exist on the server before we try to disable the placard for it.
    76 after 2000 {
    77     $mapviewer placard enable off "$map-stations"
    78 }
     77$mapviewer placard enable off "$map-stations"
Note: See TracChangeset for help on using the changeset viewer.