• The GPX viewer does not function when the page content is created via an ajax call.

    Example: Go to page https://beta.opajaap.nl/gps-test-2/
    and click on one of the four thumbnail images.
    You get a slideshow image with underneith a box showing a [map] shortcode.
    Refresh the page: it shows the map.

    It would be greatly appreciated by users of my plugin ( wp-photo-album-plus ) if there was a way to make it function via ajax.

    I tried if ( function_exists('gmapv3') ) add_shortcode('map', 'gmapv3'); in my ajax proc, but i can not find a solution for the js error [11:37:58.924] ReferenceError: google is not defined @ https://beta.opajaap.nl/wp-includes/js/jquery/jquery.js?ver=1.10.2:3

    ( and of course:

    Notice: Trying to get property of non-object in /mnt/webc/d3/15/51893315/htdocs/opajaap/beta/wp-content/plugins/google-maps-gpx-viewer/google-maps-gpx-viewer.php on line 26 Notice: Trying to get property of non-object in /mnt/webc/d3/15/51893315/htdocs/opajaap/beta/wp-content/plugins/google-maps-gpx-viewer/google-maps-gpx-viewer.php on line 142

    because there is no page id during the ajax operation, but that is a minor problem )

    https://www.ads-software.com/plugins/google-maps-gpx-viewer/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bernd Altmeier

    (@bernd-altmeier)

    I use “echo gmapv3($attr);” inside the poi widget directly after setting the desired $attr filds. You’ll find the code here:
    widgets\poi\gMap_pois.php line 89

    Thread Starter Jacob N. Breetvelt

    (@opajaap)

    I tried it but it gives exactly the same results:

    [14:47:50.779] ReferenceError: google is not defined @ https://beta.opajaap.nl/wp-includes/js/jquery/jquery.js?ver=1.10.2:3

    as adding the shortcode handler by add_shortcode('map', 'gmapv3'); and doing $html = do_shortcode($geo); in the ajaxed (partial) page content.

    You can see it ( not very long ) on the same link as above.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enhancement request’ is closed to new replies.