Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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&gt;

    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!

    #983929

    Hey 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,
    Ismael

    #984451

    the shortcode did the trick! thanks so much

    #984539

    Hi,

    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,
    Rikard

    #984819

    that’s it! Thanks and feel free to close

    #984982

    Hi,

    Great, thanks for the feedback. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘google maps in accordeon’ is closed to new replies.