-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load a map showing only Features that meets a specified Criteria #12
Comments
Thanks for your concern. Assuming I have a Service that Shows all assets (Oil Facilities) of a country and want to build a map application, such that each state in the country can Login and View ONLY the assets belonging to them at Logon/Load of the main interface(Map). It will be a very useful enhancement/ad-don. I'm building an application with your tool, I will share the screen/Application as soon as I'm done with phase 1. You are so so Generous to share this awesome tool. Thanks |
Glad your enjoying the content! We will try to this, its tricky to build this in a generic abstract way... meanwhile take a look this code, definitionExpression is what you want var layer = new MapImageLayer({ |
Thanks Hussein, I will try this out and get back to you.
Regards,Superbrains
Sent from Yahoo Mail on Android
On Tue, 4 Sep 2018 at 22:46, Hussein Nasser<[email protected]> wrote:
Glad your enjoying the content!
We will try to this, its tricky to build this in a generic abstract way...
meanwhile take a look this code, definitionExpression is what you want
var layer = new MapImageLayer({
url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer",
sublayers: [
{
id: 3,
visible: false
}, {
id: 2,
visible: true
}, {
id: 1,
visible: true
}, {
id: 0,
visible: true,
definitionExpression: "pop2000 > 100000"
}
]
});
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This is perfect Hussein. It's been applied and working accordingly. |
@superbrains glad that worked for you! would be nice to make it as a bonus episode :) |
How do I load a map service with only specific features. Assuming I want to Load the Water Network Service Where Facility Identifier = 44750. That is, I want the map to show Only Facilities that has the ID of 44750, How do I achieve this?
The text was updated successfully, but these errors were encountered: