*

Romeo

  • ****
  • 115 posts
Map buton
« on: October 19, 2017, 10:18:27 PM »
Hello
How can I add a map button to hide and show the map?
  it is possible to do this function

*

MB Themes

Re: Map buton
« Reply #1 on: October 20, 2017, 08:34:41 PM »
Basically it should be easy (check jquery show hide on google) but I  think google require block where is map tobe visible on page load for correct rendering.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Romeo

  • ****
  • 115 posts
Re: Map buton
« Reply #2 on: October 21, 2017, 05:13:57 PM »
I have been trying in the last few months and I have not been able to implement it. : ((
Perhaps at the next update, you add such a function, right?

*

MB Themes

Re: Map buton
« Reply #3 on: October 22, 2017, 07:46:52 PM »
If map is shown on load, there is not much sense in having button here to hide it..
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Romeo

  • ****
  • 115 posts
Re: Map buton
« Reply #4 on: October 23, 2017, 05:37:31 PM »
If you make this button, I pay extra the amount you say, I need that button

*

Romeo

  • ****
  • 115 posts
Re: Map buton
« Reply #5 on: October 24, 2017, 08:51:52 PM »
Code: [Select]
<div>
<script language="javascript">
function toggle() {
var ele = document.getElementById("toggleText");
var text = document.getElementById("displayText");
if(ele.style.display == "block") {
    ele.style.display = "none";
text.innerHTML = "<h3><strong><?php _e("Map"'veronica') ; ?></strong></h3>";
  }
else {
ele.style.display = "block";
text.innerHTML = "<h3><strong><?php _e("Map"'veronica') ; ?></strong></h3>";
}
}
</script>
 
<a id="displayText" href="javascript:toggle();"><h3><strong><?php _e("Map"'veronica') ; ?></strong></h3></a>
<div id="toggleText" style="display: none">

 <?php if(function_exists('radius_map_items')) { radius_map_items(); } ?>
   

</div>
</div>

The map is not fully loaded, why?

*

MB Themes

Re: Map buton
« Reply #6 on: October 24, 2017, 10:26:27 PM »
What you have in console log?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Romeo

  • ****
  • 115 posts
Re: Map buton
« Reply #7 on: October 25, 2017, 07:39:11 PM »
in which console?

*

Romeo

  • ****
  • 115 posts
Re: Map buton
« Reply #8 on: October 26, 2017, 06:18:25 PM »
????????????

*

MB Themes

Re: Map buton
« Reply #9 on: October 27, 2017, 05:40:13 PM »
@Romeo
Error refers to google adsense code/script.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots