Esri / arcade-expressions

ArcGIS Arcade expression templates for all supported profiles in the ArcGIS platform.
Apache License 2.0
284 stars 101 forks source link

QR codes generated on-the-fly in popups #83

Open hhkaos opened 1 year ago

hhkaos commented 1 year ago

Check existing issues

Execution profile

Popup

Is your feature request related to a problem? Please describe.

I would like to generate a QR code on-the-fly to allow users of my app to easily switch context from a desktop environment to a mobile one, for example to:

Describe the solution you'd like

I would like to be able to add a QR code in the popup link any of this things:

Example of QR code to be embedded in the popup to get directions to the Esri Campus in Redlands: https://chart.googleapis.com/chart?cht=qr&chs=250x250&chl=https%3A%2F%2Fwww.google.com%2Fmaps%2Fdir%2F%3Fapi%3D1%26destination%3D34.05725151285307%2C-117.19491463090748 Get directions to Esri Campus

Describe alternatives you've considered

I have considered to display URLs, with URL shorteners, but it's more complicated. For Survey123 to find a programmatic way to extract the generated QR code.

Additional context

I have found a script that uses Google Charts API to do that.

P.S: There are other free services to generate bar codes (might be worth to include as a related resource)