Display map on action
-
Hello.
I am facing an issue. Let’s say that due to the business logic there is a scenario in which Traveler’s Map at the time of the loading is under invisible div (display: none). In such case it usually loads bugged (once it becomes visible) and user is not able to use it at all – it looks like only two left top tiles are loaded (like 1/16 of full map), as shown on the screenshot:
To overcome this problem and also in the attempt of increasing speed load, I was trying to load shortcode on certain action but it didn’t work (with some jquery + php + do_shortcode function). I mean the function itself seemed to work fine as it returned the result of do_shortcode(‘[travelers-map]’) and was adding it to certain div but the map wasn’t interactive at all. I am not so familiar with PHP and I am afraid I am doing something wrong, maybe due to echoing do_shortcode result and then adding static code to div.
Anyways, is there any possibility of kinda refreshing, reloading the map at click of button for example with jquery?
The topic ‘Display map on action’ is closed to new replies.