-
AuthorPosts
-
July 10, 2018 at 9:25 pm #983835
Hi guys!
you were so nice to help me place google maps in an accordeon element with this code:
<div id=”googleMap” style=”width:100%;height:400px;”></div><script>
function myMap() {
var mapProp= {
center:new google.maps.LatLng(51.508742,-0.120850),
zoom:5,
};
var map=new google.maps.Map(document.getElementById(“googleMap”),mapProp);
}
</script><script src=”https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&callback=myMap”></script>
which worked fine until I updated my wordpress last week. The maps i did before still are fine, but i need to add a few more projects with the same map element and neither copying the shortcode from the current projects nor copying this code works anymore. Thanks!
July 11, 2018 at 1:41 am #983929Hey Ushbot,
Thank you for using Enfold.
Where did you put the “myMap” function? Have you tried to use the theme’s map shortcode or widget?
Example:
[av_google_map height='400px' zoom='16' saturation='' hue='' zoom_control='aviaTBzoom_control' maptype_control='' maptype_id='' streetview_control='aviaTBstreetview_control' google_link='' confirm_button='Click to load Google Maps' page_link_text='Open Google Maps in a new window' google_fallback='' attachment='' attachment_size='' av_uid='av-jjgca5oe' custom_class=''] [av_gmap_location address='' postcode='' city='' state='' country='Japan' long='138.252924' lat='36.204824' marker='' imagesize='40'][/av_gmap_location] [/av_google_map]Best regards,
IsmaelJuly 12, 2018 at 4:20 am #984451the shortcode did the trick! thanks so much
July 12, 2018 at 7:21 am #984539Hi,
Great, glad you got it working. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardJuly 12, 2018 at 4:39 pm #984819that’s it! Thanks and feel free to close
July 13, 2018 at 7:27 am #984982 -
AuthorPosts
- The topic ‘google maps in accordeon’ is closed to new replies.
