Changeset 6102
- Timestamp:
- Mar 4, 2016, 7:01:39 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/map.tcl
r6097 r6102 531 531 error "Layer '$id' already exists" 532 532 } 533 if { ![info exists _layerTypes($type)] } { 534 error "Invalid layer type \"$type\": should be one of: [join [array names _layerTypes] {, }]" 535 } 533 536 set parent [$_tree findchild root "layers"] 534 537 set child [$_tree insert $parent -label $id] … … 560 563 set val $params($key) 561 564 if {$val != ""} { 565 if {$key eq "coverage" && $type ne "image"} { 566 error "Coverage is only valid for layers of type \"image\"" 567 } 568 if {$key eq "content" || $key eq "priority"} { 569 if {$type ne "label"} { 570 error "content and priority are only valid in layers of type \"label\"" 571 } 572 } 573 if {$key eq "opacity" && $type eq "elevation"} { 574 error "opacity is not valid for layers of type \"elevation\"" 575 } 562 576 $_tree set $child $key $val 563 577 } … … 706 720 } 707 721 } 722 } 723 default { 724 error "Unknown driver \"$driver\"" 708 725 } 709 726 }
Note: See TracChangeset
for help on using the changeset viewer.