Hello,
I am brining an ArcGIS Online layer into Map Viewer as a Web Service. The ArcGIS Online Web Service in question is: https://maps.gov.bc.ca/arcserver/rest/services/mpcm/bcgwpub/MapServer/75?f=pjson
Is it possible to clip the Web Service to a polygon or extent within Map Viewer?
I have attempted setting a Custom Parameter for 'extent' as well as 'fullExtent' for the layer, to no success. The hope here was that the layer would essentially be clipped to a bounding box. Even better would be if a polygon could be used instead of a bounding box.
Additionally, I have looked into using the Clip and Intersect arcade expressions within the layer style. However, this seems to provide a boolean or numeric indication of occurrences of features that intersect or fall within the clip, as opposed to actually creating a layer that has been subsetted to show a smaller region.
Here is the Intersect Arcade expression used:
var geom2 = Polygon({ "rings": [ [[-13955923,6470764],[-13631489,6492862],[-13889128,6123228],[-13616423,6122224]] ],"spatialReference": { "wkid": 3857 } });
EnvelopeIntersects($feature, geom2);
Thank you for any assistance you can provide in helping me 'Clip' an AGOL Web Service to a smaller area.
-Ben