• Resolved menzma

    (@menzma)


    Hi Ian,

    Problem:
    -As per instructions on your main page, placed those two functions in my functions.php file so I can use shortcode to display on index page.

    -How can I update the map options on the index page? Is there a function I could call? (Note: [bgmp-map categories=”parks,restaurants” width=”500″ height=”500″ center=”chicago” zoom=”10″ type=”terrain”] will not work)

    -my ultimate goal is to click a link that will use AJAX to only update the map’s center option and categories option

    -any tips/help?

    Thank you for your time!

    http://ww.wp.xz.cn/extend/plugins/basic-google-maps-placemarks/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ian Dunn

    (@iandunn)

    Instead of using parameters in the [bgmp-map] shortcode, you set them in the setBGMPMapShortcodeArguments() function, which is documented on the Installation page.

    Shortcode parameters will work with do_shortcode() in an upcoming version, but there’s no ETA for that yet.

    Thread Starter menzma

    (@menzma)

    Ok i’m trying to us $_get to get the parameter in the address bar. And this is what I have.

    sorry i’m a bit of php noob here.

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    I’ve tried a lot of things…. how do i get that $test2 to pull the parameter value in the address.

    Now, i’m going to use ESP and assume you are going to tell me pass $test2 as a setBGMPMapShortcodeArguments() parameter.

    in my main index page would I pass…
    <?php
    echo do_shortcode( ‘[bgmp-map]’ );
    setBGMPMapShortcodeArguments($options, $test2);
    ?>
    ? and edit the function accordingly? or am i way off?

    Thread Starter menzma

    (@menzma)

    nevermind… i forgot to capitolize my $_GET

    ….

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Basic Google Maps Placemarks] Update Map on index page using AJAX’ is closed to new replies.