Select to view content in your preferred language

Labels show, even though layer is covered by another layer

1393
5
05-09-2019 08:01 AM
BarbaraS
Regular Contributor

I have a map with a raster layer, overlaid by a contours layer with labels. I also want to show contours from previous projects outside of our current project area and have copied that contours layer, changed the definition query and labeled them the same way. The feature lines itself are not visible but the labels are! They shine through the raster layer. 

I tried a couple of things explained here, such as a polygon layer (didn't help), SQL query on new field (unpractical, since the old project data comes from our sde) or checking the "Advanced Drawing Option" settings in the data frame, which works like a charm, masks out all features inside of our raster extent but the labels are STILL THERE

The ultimate solution for now was to create an annotation layer in the gdb. But I am wondering, if I didn't see some settings in the label properties (both standard labeling and maplex)? And why is this even happening?  Why have labels the highest weight and won't be covered by overlaying layers?

0 Kudos
5 Replies
RobertBorchert
Honored Contributor

You need to use masking.

0 Kudos
BarbaraS
Regular Contributor

Hi Robert,

Thanks for your reply! Masking on what? Like the option I found with Advanced Drawing Option? Else I just now found the tool Feature Outline Mask. Is it that what you mean?

0 Kudos
RobertBorchert
Honored Contributor

Right click on your Data Frame in the contents pane and select Advanced Drawing Options.

There will be a check box to use Masking Options.  you can use a Polygon layer to mask other layers

0 Kudos
BarbaraS
Regular Contributor

This is what I tried! The features disappear but the labels stay! At least in my experience...

0 Kudos
WendyHarrison
Esri Contributor

Hi,

We have a request in for the labels to use the raster as a barrier.  Until it is resolved there are a couple workarounds that you can use.

1. convert your labels to annotation and move them under the raster in the toc/contents pane.  they will then draw with the layer instead of last and overtop of the raster.

2. create a polygon feature the same size as the raster.  you can then weight this polygon so that no labels place on top of it.

thanks

Wendy

0 Kudos