Map opens to specific location based on URL?
Good Afternoon!
We have this website on our counties Environmental Health webpage that lists closed restaraunt facilities...
http://psbweb.co.kern.ca.us/EH_Framed_Webpages/EH_Enforcement_ClosedFoodFacility.aspx
When you click on one of the facilities, it links you to the web map I created that lists the restaurants inspections, allows you to run a report, and submit a complaint.
What I am wondering is if anyone has any ideas on how to have the map open to the restaurant that was clicked? So for example, if I click on Arbys in the list, the map opens up to Arbys, or opens the report for Arbys opens, or Arby's is already populated in the Search box? Ideas?
0
-
Lisa create your urls with unique ID, like below. Create a workflow that takes that input parameter and zooms to it. The below link is an example. It runs the FindFacility workflow with a facid = SDWF = SWDF-20160519054059. https://maperture.digitaldataservices.com/gvh/?viewer=cswdif&run=FindFacility&facid=SWDF-20160519054059
0 -
Hi Tom...Any chance you could post your workflow as an example? 0 -
Thanks! I'm sure I'll have more questions soon...Stay tuned! 0 -
Hi Tom! So I think I'm on the right track...I"ve created my workflow "URLWorkflow" which finds and zooms to a facility based on the input argument, but I get this error... 0 -
Top of the workflow, there is a GenerateToken task. You will need to change the URL and enter the username and password for your server. 0 -
Are you suplying a token to the query? 0 -
I have the GenerateToken task, and I believe I have to filled out correctly. Lets say my map service has a username of "ABC" and a password of "123"...Would it look like this with the username and password in quotes? 0 -
Lisa. At the top of the workflow there is a task "GenerateToken". You need to change the Token Service URL to "https://phweb.co.kern.ca.us/arcgis/tokens/generateToken". Put in the "Username" and "Password". This will generate a token and store it in the agsToken variable. Make sure that your QueryTask is using the agsToken (see highlighted below) 0 -
Had to put this project on hold for a few weeks, but now I"m back and still struggling. So I got the Generate Token activity working, now I'm getting an error in the Buffer Task activity 0 -
Hi Lisa, 0 -
Hi Danny, I'm still getting the Buffer Task error whether the token is there or not... 0 -
Hi Lisa, 0 -
Check if fsFacility.Features.Any returns True (then the featureset contains features). 0 -
Thank you Nico, I'm a bit of a newbie still so I apologize for the question I'm able to ask... 0 -
Use the following in the Text property of an Alert activity. fsFacility.Features.Any.ToString
Place the Alert between Query Task and Buffer Task.0 -
And another way to find out about what features you have is: 0 -
Thank you so much to everyone that commented on this thread! Much appreciated! Thanks to Nico, I realized my features weren't being passed, also needed to set a spatial reference in my Buffer task. Works perfect! THANK YOU AGAIN! 0
Please sign in to leave a comment.
Comments
17 comments