• Resolved Antipole

    (@antipole)


    Hi… I have a site that displays track charts recorded as a .kml file – see example here. I presently use an iframe loading via maps.google.com. But I am getting a warning that this will no longer work after February as Google is withdrawing the ability to draw .kml tracks using the old maps system.

    I have tested WP Flexible Map as a new way to go and it works well – thank you.

    However, an important feature of my old way is the ability to open the map in a new frame, thus allowing a maximised chart without space taken up by the WP headers/images etc. See the link ‘Open map in separate window’ above the chart in the example page above.

    Is there any way WP Flexible Maps can be told to open in a new window? In a previous map arrangement I once used, the generated map included a button that opened itself in a new window – that would do fine. Any advice much appreciated.

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

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

    (@webaware)

    G’day antipole,

    Probably your best bet is to import your KML into Google My Maps, and then you can link to that map for your “separate window” view. Flexible Map will be able to show the map from My Maps (see this related support ticket).

    cheers,
    Ross

    Thread Starter Antipole

    (@antipole)

    Ross.. thanks for your response.
    I have experimented with that. My problem is that as my cruise progresses, I need to update the track every couple of days. At present, I just edit the .kml file in my DropBox folder to include the latest track and everything is taken care of, as and when the often limited Internet connection when afloat allows.

    As I understand it, using Google My Maps I would have to go to Google Maps, upload the new .kml file, create a new map and then update my WordPress pages to reference the new map string. This would be a real hassle and take time, especially with a flaky and slow connection.

    I believe there is some kind of indirect facility in .kml syntax which allows an ‘include’ file reference, but I imagine that is resolved when the new My Map is uploaded rather than each time the map is accessed.

    thanks of your interest – any further wisdom welcomed – Tony

    Plugin Author webaware

    (@webaware)

    Perhaps the simplest solution here would be to have a basic HTML page on your website that loads the map, and open that as your full-screen view. See here for an example:

    https://developers.google.com/maps/documentation/javascript/examples/layer-kml

    cheers,
    Ross

    Thread Starter Antipole

    (@antipole)

    I have adapted the html from the example page and am serving it from my DropBox space for easy editing. Yes I can open it in a new window. I can also include the same in an iframe within my WordPress page so I only have the one map page to maintain. I am back in business!

    Thanks for your guidance and help – much appreciated. Tony.

    Plugin Author webaware

    (@webaware)

    Excellent, sounds like a solution then 🙂

    cheers,
    Ross

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Opening map in new frame’ is closed to new replies.