WordPress.org

Support

Support » Plugins and Hacks » Advanced AJAX Page Loader » [Resolved] [Plugin: Advanced AJAX Page Loader] Google Maps not visible

[Resolved] [Plugin: Advanced AJAX Page Loader] Google Maps not visible

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Dean Williams

    @deano1987

    This is because when you load a page with AJAX – you need to recall any javascript used to bind things like Google Maps to a page because the new HTML in the page is not re-parsed automatically by JavaScript.

    Just put the google maps code into the “reload code” section of the admin panel – and all should work correctly.

    HI,
    i use this function in reload code but its not working.
    i have placed
    window.onload=initialize; in my page.php code but nothing worked for me map display only when i page refresh or place any button and put onclick event on it but window.onload function not working.

    function initialize() {

    var myLatlng = new google.maps.LatLng(53.514163,-0.03512);
    var mapOptions = {
    center: myLatlng,
    zoom: 16,
    mapTypeId: google.maps.MapTypeId.ROADMAP
    };

    var contentString = ‘<div><b>La Brouse</b>
    ‘+
    ’60 Threadneedle Street
    ‘+
    ‘London
    ‘;

    var infowindow = new google.maps.InfoWindow({
    content: contentString
    });

    var map = new google.maps.Map(document.getElementById(“map_canvas”),mapOptions);
    var marker = new google.maps.Marker({
    position: myLatlng,
    map: map,
    icon: ‘/wp-content/themes/Labourse_pdf/images/map.png’,
    title: ”
    });

    google.maps.event.addListener(marker, ‘click’, function() {
    infowindow.open(map,marker);
    });
    }

    Hi how did you fix this?

    I haven’t fixed it yet,i am waiting for the reply.

    Thanks.

    Hi,
    i resolved it via iframe if anyone is facing the same problem put your gmap custom funtion in iframe and then call into page

    it will work for you

    Thanks.

    Plugin Author Dean Williams

    @deano1987

    sneaky cheat but glad you got a solution working 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] [Plugin: Advanced AJAX Page Loader] Google Maps not visible’ is closed to new replies.
Skip to toolbar