Extracting Location Coordinates to add a Map Marker Map
How to extract and format coordinates from a location and generate a URL to display a custom map within a Knack view iframe
Required Fields
Address - Project Location (with Geocoding option enabled)
Text Formula - Project Location Display (set to Project Location address field)
Short Text - Project Location Extract (set to Project Location text formula field if not identical)
Text Formula - Map Marker Label Display (what fields to display for map marker label)
Text Formula - XY Extract (combined X & Y coordinates trimmed from the Location Extract)
Text Formula - X Extract (X coordinate trimmed from combined XY Extract)
Text Formula - Y Extract (Y coordinate trimmed from combined XY Extract)
Text Formula - Pure X Extract (trims the X Extract to provide a clean coordinate for the Map URL Generator formula)
Text Formula - Pure Y Extract (trims the Y Extract to provide a clean coordinate for the Map URL Generator formula)
Text Formula - Map Marker Modal Display (what text & fields to show on map marker popup)
Text Formula - Map URL Generator (the arcgis web map location with specific attributes)
Link - Map URL (set to the generated Map URL)

Additional Link
After completing the above setup, one more thing can help users. We can provide a Link below the rendered map so that users can navigate to the map in a new tab to view in ArcGIS Online. You would update the link with the appropriate map url.
<a target="_blank" href="https://arcg.is/1ODubj0">Open Map in ArcGIS Online</a>
Last updated
Was this helpful?