Title: Feature Request: Map Reset
Last modified: June 4, 2023

---

# Feature Request: Map Reset

 *  [Dean](https://wordpress.org/support/users/collabora/)
 * (@collabora)
 * [3 years ago](https://wordpress.org/support/topic/feature-request-map-reset/)
 * Hi Joe,
 * It would be nice if visitor can reset the map view after panning and/or zooming
   map.
 * This would be especially handy when viewing on a phone. I have noticed, depending
   on theme (or page stylings), it is easy to pan when you want to scroll

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Joe](https://wordpress.org/support/users/morehawes/)
 * (@morehawes)
 * [3 years ago](https://wordpress.org/support/topic/feature-request-map-reset/#post-16799286)
 * Hi [@collabora](https://wordpress.org/support/users/collabora/),
 * Thanks for your suggestion, I think this could be a nice addition.
 * Please note that I have added some new settings (Waymark Settings > Maps > Interaction)
   to help with this problem.
 * Cheers,
 * Joe
 *  Plugin Author [Joe](https://wordpress.org/support/users/morehawes/)
 * (@morehawes)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/feature-request-map-reset/#post-16823193)
 * Hi [@collabora](https://wordpress.org/support/users/collabora/),
 * I just wanted to let you know that I put together an [example](https://www.waymark.dev/docs/callback-function/)
   of how to achieve this using the Waymark callback function (you will need to 
   add a JavaScript function to your site).
 * I hope this helps.
 * Cheers,
 * Joe
 *  Thread Starter [Dean](https://wordpress.org/support/users/collabora/)
 * (@collabora)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/feature-request-map-reset/#post-16828565)
 * Hi Joe,
 * Thanks, but that’s above my pay grade. 🙁
 *  [Angelo Mariani](https://wordpress.org/support/users/mistermagoo8691/)
 * (@mistermagoo8691)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/feature-request-map-reset/#post-16828960)
 * Joe, thanks, that’s very useful! The only thing is: I know how to add PHP functions
   to the functions.php file, I’ve done it already.
 * As for Javascript functions, Google tells me that I must do it like this:
 *     ```wp-block-code
       function ti_custom_javascript() {
       ?>
       <script>
       // your javascript code goes here
       </script>
       <?php
       }
       add_action('wp_head', 'ti_custom_javascript');
       ```
   
 * Is it enough I litterally copy & paste your JS function over there, with no further
   editing?
   THXBye!A.-
 *  Plugin Author [Joe](https://wordpress.org/support/users/morehawes/)
 * (@morehawes)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/feature-request-map-reset/#post-16831093)
 * Hi [@mistermagoo8691](https://wordpress.org/support/users/mistermagoo8691/),
 * Yes that’s a valid way to add JavaScript to your site.
 * Note that using this method the JavaScript function will be added to _every page_.
   Not really an issue, as the callback function is only executed if the Waymark
   Shortcode is being displayed and that function name is provided using loaded_callback.
 * I hope this helps.
 * Cheers,
 * Joe
 *  [Angelo Mariani](https://wordpress.org/support/users/mistermagoo8691/)
 * (@mistermagoo8691)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/feature-request-map-reset/#post-16847505)
 * Thanks Joe!
 * Since I have > 50 pages with at least 1 waymark map each, and I’d need to edit
   them all one by one, adding the “loaded_callback=”waymark_refresh” in the shortcode,
   do you think you’ll ever add it as a “global parameter” (=if TRUE, all maps have
   the reset button) to the plugin configuration? If yes, I think I’ll wait for 
   it 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Feature Request: Map Reset’ is closed to new replies.

 * ![](https://ps.w.org/waymark/assets/icon-256x256.png?rev=3491393)
 * [Waymark](https://wordpress.org/plugins/waymark/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/waymark/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/waymark/)
 * [Active Topics](https://wordpress.org/support/plugin/waymark/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/waymark/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/waymark/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Angelo Mariani](https://wordpress.org/support/users/mistermagoo8691/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/feature-request-map-reset/#post-16847505)
 * Status: not a support question