Select to view content in your preferred language

Creating Dual Road Shields

672
2
10-24-2022 02:05 PM
LyonMNGIS
Frequent Contributor

Hello,

I would like to label a road with two route shields.  Currently the shields are created with two side by side point symbols and the route numbers are created by a single label expression with extra spaces so that the route numbers fall on the correct shield.  This works great when each route number has two digits.  It does not when one of the routes is a single digit (see figure 1 and 2).

Question:

How can I enforce that the route number is centered on each shield?  I would like to avoid using annotations, or very complex queries that test the length of each route number.

Thank You!

 

Figure 1.  Side by side shields created by offsetting the shield backgrounds

LyonMNGIS_0-1666643180229.png

Figure 2.  The road shields are no longer centered when I the roads are a single digit long.

LyonMNGIS_2-1666643987437.png

 

 

 

0 Kudos
2 Replies
jcarlson
MVP Esteemed Contributor

So, does the field just have a single text field with both route numbers in it?

You could try upping the word spacing value of the label text, rather than having a set number of spaces.

- Josh Carlson
Kendall County GIS
0 Kudos
LyonMNGIS
Frequent Contributor

Josh,

There are two road type / road number pairs.  Therefore I can create roads with a US and MN State shield.

In addition word spacing does not work so the highway numbers do not always fit on the shield when I need to adjust between a 1 and 2 charterer road number.  😞

0 Kudos