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
Last updated
Was this helpful?
How to extract and format coordinates from a location and generate a URL to display a custom map within a Knack view iframe
Last updated
Was this helpful?
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.
The ArcGIS Web AppBuilder allows us to modify the app with the URL paremeters we include in the URL. To include more than one parameter, use an ampersand (&) to separate the parameters.
level= : we set this to one of the defined level IDs of the map service where 13 represents the default city level we want