I’d like to use URL parameters (specifically ?find= and ?show=) in a map I’m building using the JS API.
Seems like this should be fairly standard (maybe even worthy of a pre-made widget?) but I’m not finding a current solution (lots of old posts using previous versions of js or the WAB, etc.).
For ?find= I have a points layer that I would like to query / pan / zoom to (e.g., ?find=CB, which would zoom the map to the Chemistry Building (CB).
For ?show= I have about 10 layers that I would like to have the option of turning on (e.g., ?show=parking, which would turn On the parking layer).
Anyone have any code samples of how to do this? Or able to direct me to a tutorial that would help?
(Or suggestions as to a better way to give users the ability to link directly to their desired map state?)
thanks in advance,
~stefan