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.
Chris,
Hmm. I added a dynamic map service to my test app and it still worked for me.
http://gislap183:3344/webappbuilder/?id=3&query=LOJIC_PublicSafety_Louisville_5814_0,SILOCAL,GOLDEN%20FOODS
This is my layer ID based on getting the info from the webmap json: LOJIC_PublicSafety_Louisville_5814
and the sirens layer is: 0
Yes this works fine for me:
http://gislap183:3344/webappbuilder/?id=3&query=LOJIC_PublicSafety_Louisville_186,SILOCAL,GOLDEN%20FOODS
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.
How do I get to the webmap json if the map is on AGOL?
EDIT: Never mind I got it now. Thanks Robert.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.