WordPress.org

Ready to get started?Download WordPress

Forums

WP Flexible Map
Events manager, multiple locations (4 posts)

  1. adzay
    Member
    Posted 10 months ago #

    Hi i cam across this great plugin when I stumbled upon your snippet for Events manager. I was wondering if you were able to get the snippet to work to show multiple locations on the map (done by the Events manager shortcode "Locations_map"). If so how were you able to achieve this.

    Thnaks

    http://wordpress.org/plugins/wp-flexible-map/

  2. webaware
    Member
    Plugin Author

    Posted 10 months ago #

    G'day adzay,

    No, I haven't done that. I can imagine a process for it, but it's a bit convoluted.

    * create AJAX handler that generates a KML map for an events query
    * add shortcode that loads the KML using the AJAX call

    KML is basically XML, so you could easily create the KML using PHP's XMLWriter class. WordPress AJAX handlers can return anything, and would be the easiest way to get in / out of WordPress to generate a file.

    cheers,
    Ross

  3. adzay
    Member
    Posted 10 months ago #

    Hi ,

    Thanks for your reply. Unfortunately I am not that fluent with XML/Ajax and KML. I will study this.

    I did do a bit of research and came across this post though.

    http://stackoverflow.com/questions/9735376/trouble-getting-the-content-when-generating-an-xml-file-with-wordpress-for-googl

    Cane you tell me if it right for me to use this a guide in the right direction?

  4. webaware
    Member
    Plugin Author

    Posted 10 months ago #

    G'day adzay,

    That's not bad, but I reckon XMLWriter is much more succinct and also more efficient. Take a read of this article comparing the different ways to handle XML in PHP (it has some nice simple examples of each):

    http://devzone.zend.com/1035/xml-and-php-5/

    cheers,
    Ross

Reply

You must log in to post.

About this Plugin

About this Topic