- Timestamp:
- Feb 28, 2016, 3:09:59 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/mapviewer.tcl
r6065 r6072 120 120 private method Select {option x y} 121 121 private method SendFiles { path } 122 private method SendStylesheetFiles { stylesheet } 122 123 private method SetHeading { {value 0} } 123 124 private method SetLayerOpacity { dataobj layer {value 100} } … … 2396 2397 } 2397 2398 2399 itcl::body Rappture::MapViewer::SendStylesheetFiles { stylesheet } { 2400 set files [Rappture::Map::getFilesFromStylesheet $stylesheet] 2401 foreach file $files { 2402 SendFiles $file 2403 } 2404 } 2405 2398 2406 itcl::body Rappture::MapViewer::SendFiles { path } { 2399 if {[string range $path 0 7] != "local://"} { 2407 set isRelative [expr {[string first "://" $path] < 0 && 2408 [string index $path 0] != "/"}] 2409 if {[string range $path 0 7] != "local://" && 2410 !$isRelative} { 2400 2411 return 2401 2412 } 2402 2413 DebugTrace "Local path: $path" 2403 set path [string range $path 8 end] 2414 if {!$isRelative} { 2415 set path [string range $path 8 end] 2416 } 2404 2417 set basename [file rootname $path] 2405 2418 set files [glob -path $basename .*] … … 2544 2557 set format "" 2545 2558 set wfsType "" 2559 SendStylesheetFiles $info(stylesheet) 2546 2560 if { [info exists info(ogr.connection)] } { 2547 2561 set cmd [list map layer add $tag feature db $format $info(ogr.layer) $info(ogr.connection) $info(cache) $info(stylesheet) $script $selectors]
Note: See TracChangeset
for help on using the changeset viewer.