Changeset 6659
- Timestamp:
- Dec 6, 2016 12:50:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/map.tcl
r6658 r6659 242 242 puts stderr "ERROR: $msg" 243 243 } 244 if {[catch {setCamera [$map get "camera"]} msg] != 0} { 245 puts stderr "ERROR: $msg" 244 245 set camnode [$map element -as object "camera"] 246 if {$camnode != ""} { 247 # For backwards compat with camera name/value list string in CDATA 248 set caminfo [string trim [$map get "camera"]] 249 if {$caminfo == ""} { 250 # No CDATA, check for tags 251 foreach camparam {layer x y latitude longitude z heading pitch distance xmin ymin xmax ymax srs verticalDatum} { 252 # Tags can have empty content, so check for node first 253 set params [$camnode children -type $camparam] 254 foreach param $params { 255 lappend caminfo $camparam [$camnode get $param] 256 } 257 } 258 } 259 if {[catch {setCamera $caminfo} msg] != 0} { 260 puts stderr "ERROR: $msg" 261 } 246 262 } 247 263
Note: See TracChangeset
for help on using the changeset viewer.