Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Our customer has requested the option to display the GPS location as a link to Google Maps, because they don't know what location corresponds to the GPS coordinates.
Adding a link to Google Maps isn't that difficult while providing an easy way of looking up what location is given.
Comment | File | Size | Author |
---|---|---|---|
#3 | webform_gpslocation-render_as_google_maps_url-2893480-3.patch | 3.8 KB | paulvandenburg |
Comments
Comment #2
paulvandenburg CreditAttribution: paulvandenburg at ezCompany commentedAdd an extra setting to the GPS component to allow rendering the value the default way or using the new style with a Google Maps URL.
Comment #3
paulvandenburg CreditAttribution: paulvandenburg at ezCompany commentedModified the patch so that the google maps link opens in a new tab so you don't lose your webform progress.
Comment #4
Heine CreditAttribution: Heine at LimoenGroen commentedThis is a rather nice and quick addition. One nit: the query arguments to the map URL should IMO be passed uncheck_plained to the query option of l().
Comment #6
Heine CreditAttribution: Heine at LimoenGroen commentedI committed a slightly modified patch. Thanks!