WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Making KML file work

[Resolved] Making KML file work

  • Thanks for this plugin; it’s a nice alternative to a plugin I was trying to use previously that just wouldn’t work.

    I’m trying to make a map from a KML file I created in Google Earth, and uploaded via FTP to my site’s wp-content directory. Here’s the shortcode I’m using:

    [flexiblemap center="35.030017,135.760722" width="600" height="350" src="http://associatedkyotoprogram.dreamhosters.com/wp-content/uploads/resources/maps/akp-doshisha-campus.kml"]

    The KML file has three points marked on it, with three custom markers. However, on the page itself, I don’t see any of those.

    What do I need to do so that the plugin loads the KML file properly, adding all three points and the custom marker icons to the map?

    Thanks a bunch.

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

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

    @webaware

    G’day Southwest,

    Because you’ve specified a centre point, a centre-based map is used instead of a KML-based map. In a future version, I’ll allow the centre to re-centre a KML based map, but for the meantime if you need that you’ll have to add some JavaScript to your page; see this related support post.

    Also, your kml file has relative links to images, e.g.

    <href>icons/Kyoto subway logo.png</href>

    Change those to the full paths so that Google Maps can see them on the Internet.

    cheers,
    Ross

    [edited to fix link to related support post]

    Thanks, Ross–I didn’t realize that including a KML file would automatically position the map. Just by removing the center parameter, I was able to get the KML file’s points to display.

    I also didn’t change the relative file paths to full–but the relative paths are valid links, and the icons displayed properly.

    Thanks for the assistance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Making KML file work’ is closed to new replies.