WP Geo Map On/Off

This topic contains 8 reply and 4 voices, and was last updated by towhid 9 years, 6 months ago
Viewing 8 Posts - 1 through 8 (of 8 total)
Author Posts
October 16, 2014 at 7:55 am 28505
towhid We urgently need a way to switch the map on/off. We can set the map location easily on the form but once this is done the map cannot be turned off without going into WP admin and clearing the geo co-ordinates manually within the post (WP Geo plugin). How can we add this function to the form (a simply link will suffice) so we don't have to turn off our users maps for them? After investigation the function within the WP Geo plugin (admin-post.js) is using this... // Clear location fields $("#wpgeo_location a.wpgeo-clear-location-fields").click(function(e) { $('#wpgeo_location').trigger('WPGeo_clearLocationFields'); e.preventDefault(); }); with this (admin.php) as the trigger... ' . __( 'clear location', 'wp-geo' ) . ' Cheers J
October 18, 2014 at 3:33 pm 28622
Sekander Badsha Sekander Badsha

Thanks for the solution Kiwi 😀

October 18, 2014 at 4:35 pm 28626
kiwi kiwi

The above is what we have been able to find out about the trigger but its not the solution – this is what we are asking you guys for. Please help.

October 20, 2014 at 1:58 pm 28717
towhid towhid

Hello Kiwi,

Sorry for the misunderstanding. I need a bit more clarification here. The map you are talking about, is it coming from WP Geo or User Frontend?

If it is coming from WP Geo than we can not help you on this regard. But if it is from WP Frontend then you can remove the map element from the form builder and the map will be gone from the post.

Let me know if you need more clarification.

Thank You 🙂

October 21, 2014 at 6:10 pm 28820
kiwi kiwi

Perhaps I’m over complicating the issue. What we need in the WPUF plugin is the ability to turn maps off or clear the map geo co-ordinates. At the moment we can add maps to a post but once a users does there is no function in the form to remove the map.

We have raised this issue before, the last time we were told it was a good idea and that it would be included in a future update of the core plugin so following up on this feature. It affects all users who add maps to their forms so an important function and equally important as the add feature – irrespective of the map plugin used.

October 21, 2014 at 6:12 pm 28821
kiwi kiwi

Here is the last request we made into the issue:

http://wedevs.com/support/topic/google-map-reset-linkbutton/

October 22, 2014 at 12:58 am 28839
Cesare Cantagalli Cesare Cantagalli

@kiwi: Hi, if you want to turn off the map, open wpuf.php, and comment line nr. 198

//wp_enqueue_script( 'google-maps', $scheme . '://maps.google.com/maps/api/js?sensor=true' );

ciao

October 22, 2014 at 1:53 am 28843
kiwi kiwi

@Cesare what you are proposing would remove the function to add maps altogether. Unfortunately this isn’t the question being asked here.

What we need a switch so users can clear/remove the geo coordinates set on a post. This would mean anyone editing a post created can remove maps previously set. There is currently no way to do this without access to wp admin.

October 22, 2014 at 11:04 am 28853
towhid towhid

Hello Kiwi,

The idea you suggest is very effective and will help every user we think. We will discuss about this issue with our development department and will let you know.

Please have patience.

Thank You. 🙂

Viewing 8 Posts - 1 through 8 (of 8 total)