- Timestamp:
- Apr 7, 2016, 12:27:04 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/mapviewer.tcl
r6225 r6256 55 55 public method disconnect {} 56 56 public method download {option args} 57 public method enablePlacard {state layerName} 57 58 public method get {args} 58 59 public method isconnected {} … … 989 990 990 991 # ---------------------------------------------------------------------- 992 # USAGE: enablePlacard <state> <layerName> 993 # 994 # Clients use this method to enable/disable display of a feature placard 995 # when a feature is clicked/selected. 996 # ---------------------------------------------------------------------- 997 itcl::body Rappture::MapViewer::enablePlacard {state layerName} { 998 if {![info exists _layers($layerName)]} { 999 error "Unknown layer \"$layerName\"" 1000 } 1001 if {![string is boolean $state]} { 1002 error "argument to enablePlacard must be boolean" 1003 } 1004 SendCmd "placard enable $state $layerName" 1005 } 1006 1007 # ---------------------------------------------------------------------- 991 1008 # USAGE: download coming 992 1009 # USAGE: download controls <downloadCommand>
Note: See TracChangeset
for help on using the changeset viewer.