Changeset 6089 for trunk/gui


Ignore:
Timestamp:
Mar 3, 2016, 5:33:24 PM (9 years ago)
Author:
ldelgass
Message:

Add validation to setPlacardConfig: can only be applied to a feature layer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/map.tcl

    r6088 r6089  
    677677        error "unknown layer \"$layerName\""
    678678    }
     679    set type [layer $layerName type]
     680    if {$type == "image" || $type == "elevation"} {
     681        error "Placard not supported on image or elevation layers"
     682    }
    679683    array set placardConf {}
    680684    foreach key { padding } {
Note: See TracChangeset for help on using the changeset viewer.