I'm trying to play with the "query" URL parameter available now in 1.3 but I cant figure it out. The docs aren't proving to be real helpful. I know these parameters have been available in AGOL for a month-ish but I haven't had a change to use them there yet. I can use "find" and the others fine but cant figure out how to query a layer in a service.
Solved! Go to Solution.
Chris,
Hmm. I added a dynamic map service to my test app and it still worked for me.
This is my layer ID based on getting the info from the webmap json: LOJIC_PublicSafety_Louisville_5814
and the sirens layer is: 0
Chris,
Yes this works fine for me:
I can get it to work with a feature layer that was added alone but not as part of a whole service. I assume I'm supposed to put the number for the layer in the service after the underscore.
works: ?query=Parcels,A1RENUM,18145-000-000
doesn't work: ?query=BasicService_2,A1RENUM,18145-000-000
This is the REST URL: BasicService (MapServer)
edit: boss walked in and I forgot to finish typing somehow.
Chris,
Hmm. I added a dynamic map service to my test app and it still worked for me.
This is my layer ID based on getting the info from the webmap json: LOJIC_PublicSafety_Louisville_5814
and the sirens layer is: 0
How do I get to the webmap json if the map is on AGOL?
EDIT: Never mind I got it now. Thanks Robert.