Select to view content in your preferred language

Can you Mask an Image Service in a Flex App

952
5
Jump to solution
04-26-2013 08:27 AM
NicholasMcNamara
Frequent Contributor
I have a basemap service that covers two towns. I have a few flex apps. One of the apps I want to be geographically restricted to only 1 of those towns. I have boundary layers to delineate the towns. Without creating a new basemap service, is it possible to mask out the part of the basemap that I don't want seen?

I know there are sublayer definitionqueries to mask out vector layers, so I'd to do something similar with an image layer, but based on a spatial query. I'm running 10.1.1, Flex 3.2.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
GISDev1
Deactivated User
Is there a reason you don't want to do it the easy way and just place a white polygon above the town you don't want the user to see? You can exclude that service used as the mask from the TOC, legend, etc. where the user will never even know it's there.

View solution in original post

0 Kudos
5 Replies
omega_cancer
Frequent Contributor
I have a basemap service that covers two towns. I have a few flex apps. One of the apps I want to be geographically restricted to only 1 of those towns. I have boundary layers to delineate the towns. Without creating a new basemap service, is it possible to mask out the part of the basemap that I don't want seen?

I know there are sublayer definitionqueries to mask out vector layers, so I'd to do something similar with an image layer, but based on a spatial query. I'm running 10.1.1, Flex 3.2.


Masking is not required but this solution will work for you.
http://thunderheadxpler.blogspot.com/2009/01/constraining-map-extent.html and http://forums.arcgis.com/threads/19406-How-to-Limit-Flexviewer-to-Pan-only-within-a-fixed-Map-Extent.
You just need to pass in the allowed max extents.

Thanks
0 Kudos
NicholasMcNamara
Frequent Contributor
I'm using the Flex Viewer, I'm not writing any code. Unless there is a widget for this, I'm not sure I can do it then...?

Masking is not required but this solution will work for you.
http://thunderheadxpler.blogspot.com/2009/01/constraining-map-extent.html and http://forums.arcgis.com/threads/19406-How-to-Limit-Flexviewer-to-Pan-only-within-a-fixed-Map-Extent.
You just need to pass in the allowed max extents.

Thanks
0 Kudos
GISDev1
Deactivated User
Is there a reason you don't want to do it the easy way and just place a white polygon above the town you don't want the user to see? You can exclude that service used as the mask from the TOC, legend, etc. where the user will never even know it's there.
0 Kudos
NicholasMcNamara
Frequent Contributor
Create another service just to mask out the image? I guess I could do that. I was just hoping for a cleaner solution, possible with standard configuration. But if that's the only option, I guess I'll use that.
0 Kudos
DasaPaddock
Esri Regular Contributor
0 Kudos