The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Flexible Map
multiple address in shortcode (2 posts)

  1. jmsilcom
    Posted 3 years ago #

    Hi there,

    i can't multiple address in one shortcode but I have to do. My project need to import multiple physical address from a database. May be can you explain how to export in kml ?

    Please let me know,



  2. webaware
    Plugin Author

    Posted 3 years ago #

    G'day, you can export KML from your database by building it up as an XML feed. KML is just XML with a specific set of elements; read the KML tutorial for more information. Take a look at this really simple example file to see how to structure a KML map with multiple addresses.

    If you are exporting the data from a WordPress website, I suggest you use the AJAX interface as it will greatly simplify pulling direct data from WordPress. Here's some example code for pulling XML from WordPress (read the first code snippet in the section Pulling XML from WordPress and processing in Classic ASP).

    Because you will be dynamically generating the KML, you'll need to prevent Google Maps from caching your KML (it reads it once and caches it, so if it changes, you'll need to bust the cache). See the support topic Dynamically generated KML for more information.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Flexible Map
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic