Home Forums Plugin Support WP User Frontend Pro WP Geo Map On/Off

This topic is: not resolved

This topic contains 8 replies, has 4 voices, and was last updated by  towhid 4 years, 7 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #28505

    kiwi
    Participant
    Post count: 99

    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

    #28622

    Sekander Badsha
    Member
    Post count: 2067

    Thanks for the solution Kiwi ๐Ÿ˜€

    #28626

    kiwi
    Participant
    Post count: 99

    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.

    #28717

    towhid
    Participant
    Post count: 4505

    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 ๐Ÿ™‚

    #28820

    kiwi
    Participant
    Post count: 99

    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.

    #28821

    kiwi
    Participant
    Post count: 99

    Here is the last request we made into the issue:

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

    #28839

    Cesare Cantagalli
    Member
    Post count: 40

    @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

    #28843

    kiwi
    Participant
    Post count: 99

    @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.

    #28853

    towhid
    Participant
    Post count: 4505

    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 9 posts - 1 through 9 (of 9 total)

The topic ‘WP Geo Map On/Off’ is closed to new replies.