• Resolved Christee

    (@cgamron)


    I am trying to do the same thing japhys asked about in the ‘Using kml and center tag together’ support post (http://wordpress.org/support/topic/using-kml-and-center-tag-together).

    I have multiple maps on the same page, which may use the same or different KML files. For example, I may have two maps with the same KML file and would like to display them with different center points. Or maps with different KML files, and (obviously) different center points.

    You mention ‘Give the map an id so that the script can find it, e.g. id=my_kml_map’. But I’m not certain where this id is to be specified. (Sorry, my JS skills are minimal.) Could you please elaborate?

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

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

    (@webaware)

    G’day cgamron,

    I’m talking about adding an ID to the shortcode; this will then assign derived IDs to the FlexibleMap object and the HTML divs for the map.

    For example, this shortcode has an ID of “sugarloaf”:

    [flexiblemap center="-32.891058,151.538042" id="sugarloaf"]

    The FlexibleMap object will have an ID of “flxmap_sugarloaf”, and the div it sits in will have an ID of “flxmap-sugarloaf”.

    cheers,
    Ross

    Thread Starter Christee

    (@cgamron)

    Got it. Thank you!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘KML and center tag together – multiple maps on page’ is closed to new replies.