Is it possible to add both a feature layer and a map image layer of the same data to a web map?

446
1
10-18-2021 11:20 AM
LLCCG
by
New Contributor III

I have a feature class in my sde database. It is shared as a registered layer to my organization. 

On the web map, the feature layer doesn't like to draw. I get a message saying there may be too many features to display. The map image layer of the same data draws perfectly. 

I have a separate polygon layer that represents markets. That layer has a popup that should (ideally) sum up the totals of attributes from the other layer from features within the polygon. I have the attribute expression configured to do that, but it only works on the feature layer--it won't sum up the attributes from the map image layer. 

So, ideally I'd like to have both on the map, and just make the features transparent for the feature layer. That way, I would have the data from the feature layer and the visualization from the map image layer.

However, every time I try to add both, the web map removes the feature layer. If I remove the map image layer, the feature layers show up again. 

Is there some trick to getting them both on there? 

0 Kudos
1 Reply
TanuHoque
Esri Regular Contributor

@LLCCG 

I just tried and it worked for me.  Please check this out: https://arcg.is/0vumXi

All I did was this:

- I added the map image layer first (https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer)
- then added the feature layer using this url https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0


please let me know if I misunderstood anything.

0 Kudos