Select to view content in your preferred language

Remove labels from a single layer that is under a polygon

282
5
Jump to solution
2 weeks ago
Labels (1)
LyonMNGIS
Frequent Contributor

Hello,

I would like to create a map that includes address points, roads, cities, etc.  I want to label my roads but not my address points that are contained in a city polygon.

Right now I have two option:

I can hide all of the labels over cities by using a label feature weight =1,000.  This allows me to hide the address point labels as desired, but it I would like to label the roads.

I can use a feature mask which hides the address point geometry (which is moot because the address points are already under the cities) however, the labels still appear.

Is there a way to label every layer except address points that are within city limits?

 

Thank you

LyonMNGIS_1-1747845925745.png

 

LyonMNGIS_0-1747845844220.png

 

0 Kudos
1 Solution

Accepted Solutions
KG_427
by
Regular Contributor

If you don't have anything in the point layer to make a query with, (ie in city vs outside of city) you could use select by location to grab all of the points that fall outside the city, make a layer from said selection, and then label the selection only. 

View solution in original post

0 Kudos
5 Replies
JonM32
by
Frequent Contributor

@LyonMNGIS You can turn off labeling for the layer you don't want labels for in the Ribbon. Just select the layer in the contents, go to the ribbon and uncheck labels for address points.

Jon
0 Kudos
LyonMNGIS
Frequent Contributor

Jon,

I apologize I need to clarify that I want address points labels to appear outside of city limits, but not inside city limits.  The roads layer should be labeled both inside and outside of city limits.

Thank You

0 Kudos
RyanUthoff
MVP Regular Contributor

Is there anything in the address points attribute table that differentiates between inside and outside city limits? If there is, what you can do is create different Label Classes based on a query. Or in this case, create a single Label Class where "inside outside city limits = yes" and only label those features. 

RyanUthoff_0-1747852941400.png

 

0 Kudos
KG_427
by
Regular Contributor

If you don't have anything in the point layer to make a query with, (ie in city vs outside of city) you could use select by location to grab all of the points that fall outside the city, make a layer from said selection, and then label the selection only. 

0 Kudos
LyonMNGIS
Frequent Contributor

@RyanUthoffand @KG_427 

I can try to create a separate feature class.  I was just hoping there is a way to automatically set the labels so I do not have to create a temporary feature class each time i create a map.

Thank You

 

 

0 Kudos