Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I do not see any obvious setting for stacking labels in ArcMap (ArcView license). Am I missing something or do i have to write a complex expression to stack my labels?

share|improve this question
    
Can you tell us what data your field contains & how you want to stack it? –  Devdatta Tengshe Sep 21 '10 at 17:44
    
New in Version 10.1: The Maplex for ArcGIS extension functionality has been moved into the core ArcGIS for Desktop product and is referred to as the Maplex Label Engine. –  Jens Mar 7 '13 at 7:59
add comment

2 Answers

You can write an expression, but its not complex. Just type in "vbnewline" between the fields you want to label on, and it will create a stacked label.

[FIELD1] & vbnewline & [FIELD2]

share|improve this answer
    
Thanks. My labels are contained within 1 field so vbnewline will not work. –  Jakub Sep 21 '10 at 17:17
    
@Jakup- split the field value then "stack" your label using vbnewline (or vbcrlf)? –  Derek Swingley Sep 21 '10 at 17:25
add comment
up vote 2 down vote accepted

This works:

 Function FindLabel([Name]) 
  var = [Name]
  result = ""   
  splitStr = Split(var, chr(32))
  for i = 0 to UBound(splitStr)
     tmpStr = Trim(splitStr(i))
      if len(tmpStr) > 0 then 
         if result = "" then
         result = tmpStr 
     else
        result = result & vbnewline & tmpstr    
     end if
      end if
  splitStr(i) = tmpStr
  next
  FindLabel = result
End Function
share|improve this answer
    
This script is awesome, THANK YOU!!! Worked like a charm!!! –  user15867 Mar 6 '13 at 21:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.