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

    (@webaware)

    G’day Daniele,

    I think you’re hitting the limits of the Google Maps API; read the bit about size and complexity. I tried a few different approaches to get that map displaying, and could only succeed with one segment at a time, hence the suspicion that it’s the complexity of the whole.

    Sorry to say, but your best bet here is probably the iframe approach:

    <iframe src="https://www.google.com/maps/d/embed?mid=zQ-1K-JaQ3qc.k1ogpvzTgL-4" width="640" height="480"></iframe>

    cheers,
    Ross

    Plugin Author webaware

    (@webaware)

    Ha! actually, it works if you package up the KML as a KMZ (zip archive). So export your map as KML, zip it as a .zip file, rename to .kmz, and load that to your website. It can be loaded in Google Maps API successfully. e.g. see this one:

    [flexiblemap src="https://webaware.com.au/maps/seven-seven.kmz?v=2" width="100%" height="640px" maptype="terrain"]

    cheers,
    Ross

    Thread Starter sneike

    (@sneike)

    Hi Ross,
    thank you so much for your quick help.

    I think the complexity limits apply also to kmz files. May this mean that the reason the original kml does not show is not because the complexity?

    Anyway, the kmz workaround is a good solution. The drawback is that I lose the online feature of the kml generated by My Maps. If I update the map it won’t update on my website. ??

    Daniele

    Plugin Author webaware

    (@webaware)

    Yes, it means it’s the size. That KML is over 5MB, and the stated supported limit is 3MB. Zipping it up in a KMZ brings it down to 2.2MB.

    cheers,
    Ross

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘My Maps kml in Flexible Map’ is closed to new replies.