Automatic HTML5 Geolocation possible?

Created on 12 May 2022, over 2 years ago
Updated 31 March 2023, over 1 year ago

Problem/Motivation

In the form display I have chosen the Geofield map widget. At the end I have "Use HTML5 Geolocation to set default values" checked. This gives me a button to find my current position. Is it possible to fire this event automatically, when the form is opened?

💬 Support request
Status

Needs review

Version

2.82

Component

Miscellaneous

Created by

🇩🇪Germany droprocker

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom problue solutions Northern Ireland

    This works fine for me on the field widget.

    Is there any possibility of this being added to the views plugin?

  • 🇮🇹Italy itamair

    @Problue_Solutions please refer to this support request of you that I just answered: https://www.drupal.org/project/leaflet/issues/3351314#comment-14991657 💬 Client location marker Fixed
    to fulfil also this one of you, on this Goefield Map module, considering that in this case you should rather use the Geofield map 'geofieldMapInit' event triggered from here: https://git.drupalcode.org/project/geofield_map/-/blob/8.x-2.x/js/geofie...

  • 🇬🇧United Kingdom problue solutions Northern Ireland

    itamair, as per my reply on the other thread, thank you so much for the pointers and guidance, you are an incredible asset to the Drupal community and sharing these quick pointers to orientate me in the right direction is exactly what i need to go and invetsigate and test further, and hopefully answer some questions in future instead of just asking them!

Production build 0.71.5 2024