Comments (6)
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.
- Use the initialisation event to get a reference of the gmap3 object,
- Clear the existing marker,
marker.setMap(null);
marker = null;
- create a new marker at the location required.
from cf7-google-map.
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.
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.
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.
fair call, thanks for responding @aurovrata
all the best
from cf7-google-map.
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)
- Translating default fields does not work HOT 3
- Get Lat Long as hidden fields HOT 1
- Issue since 1.4.3 update HOT 5
- Edge gives javascript error HOT 3
- Cannot read property 'addListener' of undefined HOT 2
- Google map on Popup/Modal HOT 4
- Search button not working. HOT 2
- If map is required yellow alert message is empty HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cf7-google-map.