Git Product home page Git Product logo

Comments (6)

aurovrata avatar aurovrata commented on August 21, 2024

Someone already requested this on the WordPress support forum.

This isn't something I am willing to develop currently as it would only make sense on mobile browsers, most desktop/laptop browsers are unable to geolocate accurately.

However, you can develop your own solution with this plugin as the gmap3 object is exposed.

  1. Use the initialisation event to get a reference of the gmap3 object,
  2. Clear the existing marker,
marker.setMap(null);
marker = null;
  1. create a new marker at the location required.

from cf7-google-map.

aurovrata avatar aurovrata commented on August 21, 2024

You can test your browser location here. It does not work for my browser due to privacy settings, and this is likely across the majority of browsers.

Developing this functionality in the plugin would not be very difficult, but it would likely end up having a lot of non-coder users complaining the plugin does not work and make support a headache.

Hence, I prefer to leave this out and give access to underlying objects for coders to implement this knowing the limitations of the functionality.

from cf7-google-map.

kartguru avatar kartguru commented on August 21, 2024

What about using an IP lookup to identify rough location? User could then find the appropriate address to enter much quicker.

Cheers and nice suite of cf7 plugins

from cf7-google-map.

aurovrata avatar aurovrata commented on August 21, 2024

Indeed, HTML5 Geolocation API already does (try it here). However, given that it uses a user's private information, it would also require special handling in the backend to comply with the EU's GDPR regulation.

Given the ease to implement this on a custom basis using the plugin's exposed js initialisation process, and the low number of request for this, I prefer to leave it out of the plugin.

it would likely end up having a lot of non-coder users complaining the plugin does not work and make support a headache.

another reason to leave it out...for now at least

from cf7-google-map.

kartguru avatar kartguru commented on August 21, 2024

fair call, thanks for responding @aurovrata

all the best

from cf7-google-map.

aurovrata avatar aurovrata commented on August 21, 2024

I may come back on this decision and implement in a future version....I am rather busy with the Post My CF7 Form plugin rewrite at this point of time.

Anyhow, I keep this issue open for now.

from cf7-google-map.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.