Object Reference : Object View and Procedure Reference : Geomap
  
 
setshapelabel
Set which attribute to use or create a custom label to use when labeling shapes in the geomap.
Syntax
geomap_name.setshapelabel(attribute_name) custom_label
where attribute_name is the name of an attributed in the geomap. In the case where attribute_name is equal to “custom”, the custom_label will be used. In all other cases, the command will be ignored.
Examples
geomap1.setshapelabel(name)
will label the areas in the GEOMAP1 geomap object using areas name attribute.
geomap1.setshapelabel (none)
turn off all area labels in the GEOMAP1 geomap object.
geomap1.setshapelabel (fillvalues)
will label the areas in the GEOMAP1 geomap object using the numerical values used for determining area fill color. This only applicable after a colormap has been applied. All values will otherwise be NA.
geomap1.Setshapelabel(custom) Area:[county],[state]\nPop:[fillvalues]
will create a custom 2 line label for the areas in the GEOMAP1 geomap object. The first line of the label will read “Area:” followed by the areas county attribute, a comma, and then the areas state. The first line will look similar to “Area:Suffolk,NY”. The second line of the label will “Pop:” followed by the value used to color the area.Examples
Cross-references
See “Geomaps” for a discussion of geomaps.