WordPress.org

Ready to get started?Download WordPress

Forums

Comprehensive Google Map Plugin
[resolved] KML file not loading, maps not displaying as expected (21 posts)

  1. lydiamann592
    Member
    Posted 2 years ago #

    I assume there is a jQuery conflict keeping my map from loading with the KML file associated, but I am out of ideas for resolving it.

    I've followed the KML samples for generating my file "ya-GoogleMap.kml" and linked to it on the first map on this page:
    http://www.yogaanatomy.org/staging/countries/
    The second map on that page is an attempt using the "Location" field – not a workable solution since there are too many points, with more to come.

    I'll be happy to donate to support your development, if I can get the plugin working correctly, so I'm hopeful you'll be able to help me solve this.

    http://wordpress.org/extend/plugins/comprehensive-google-map-plugin/

  2. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Lydia,

    Ofcourse I want to help you and happy to have a look.
    It's just I am at work now, and will be able to have a look from home in 6-7 hours.

    Please be patient, and I will attend to it ASAP

    Thank you

  3. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    I had a quick look: it looks like the KML does generate the map,
    It's just the zoom is off. From memory setting zoom in the plugin options does not affect the KML, so the zoom info should be provided within KML itself.

    Will have a look later as promised

  4. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    I found something that maybe will resolve your problem:
    http://stackoverflow.com/questions/8187837/google-maps-zoom-gets-over-riden-when-using-a-kml-file

    Will test tonight and release the fix

  5. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    I have a question for you, when you generated the KMl file, how can you be sure that it is properly constructed? have you tested it after generation? Did you get any preview that tells you what your map will look like?

    You have typos in your KML file. Look here at the snippet from your KML:

    <Placemark>
        <name>Denmark</name>
        <Point>
          <coordinates>56.26392,9.501785</coordinates>
        </Point>
      </Placemark>
    
     <Placemark>
        <name>
    
      <Placemark>
        <name>England</name>
        <Point>
          <coordinates>52.355518,-1.17432</coordinates>
        </Point>
      </Placemark>

    You see the problem? Extra 'placemark' and 'name' tags unclosed! Many places are like that :(

    You can use this website for preview:
    http://display-kml.appspot.com/

  6. lydiamann592
    Member
    Posted 2 years ago #

    Thank you so much. I am very grateful for your prompt response.

    I didn't know how to test the KML so that site is a big help.

    I hope to be able to get this all fixed up and will post here when I do.

  7. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Beware of copy/paste mistakes... Very dangerous :)

  8. 77duda77
    Member
    Posted 2 years ago #

    I am having the same loading issue. Please help, I have tried disabling all my other plug ins and nothing is working. My site with the map not working, http://www.micc-or.org/?page_id=251

  9. lydiamann592
    Member
    Posted 2 years ago #

    I did what I could but was never able to get this to load and since gave up. 77duda77, if you work it out, please let me know how.

  10. 77duda77
    Member
    Posted 2 years ago #

    This is the first time I created my own wordpress template. Could it have something to do with some code I didn't put in somewhere?

  11. 77duda77
    Member
    Posted 2 years ago #

    When I changed the theme I got this error,
    ×

    ATTENTION! (by Comprehensive Google Map Plugin)

    Dear blog/website owner,
    Google returned the following error when trying to load KML file:

    The KML file is not a valid KML, KMZ or GeoRSS document. (INVALID_DOCUMENT)

    The map did show up though.

  12. 77duda77
    Member
    Posted 2 years ago #

    Ok I figured it out. Due to this being the first wordpress theme I have ever done I was missing <?php wp_footer(); ?> in the footer.php which then was not writing any of the jquery script to populate the map.

    Thanks for trying to look into it.

  13. lydiamann592
    Member
    Posted 2 years ago #

    good troubleshooting 77duda77
    I may go back to mine at some point to try again.
    Congratulations on developing your own template!

  14. GabyS
    Member
    Posted 2 years ago #

    Thanks, that helped me.

  15. MKGees
    Member
    Posted 2 years ago #

    Hi,
    Not sure if I'm on the right thread, but....
    I can't get my KML file to show. It should be kosher - it was output by Google Earth based on locally added waypoints there.

    My shortcode reads :
    [google-map-v3 width="800" height="550" zoom="11" maptype="roadmap" mapalign="center" directionhint="false" language="default" poweredby="false" maptypecontrol="true" pancontrol="true" zoomcontrol="true" scalecontrol="true" streetviewcontrol="true" scrollwheelcontrol="false" draggable="true" tiltfourtyfive="false" addmarkermashupbubble="false" addmarkermashupbubble="false" addmarkerlist="52.10000,-0.740000{}4-default.png{}MK" kml="http://cachingtheboundary.org.uk/wordpress/wp-content/uploads/GPX/MKBW_Route_Test.kml" bubbleautopan="true" showbike="false" showtraffic="false" showpanoramio="false"]

    The plugin reports an error that the file is not found, even though it is present and has open permissions. Any ideas ?

    http://cachingtheboundary.org.uk/sectors/

    Any suggestions welcome. It beats me ......

  16. mmaga
    Member
    Posted 1 year ago #

    Hi, I have the same problem. I've just installed the plugin to the WordPress 3.4.2. I generated a kml with google maps and tried both uploading the file and the url (I checked that was valid). So... I can see the map centered on where my placemarks are but none are showing, looks empty. any suggestions please?
    thanks in advance

  17. lydiamann592
    Member
    Posted 1 year ago #

    @mmaga I was never able to resolve this, just gave up. I'm hoping your new post attracts attention of someone who can assist.

  18. mmaga
    Member
    Posted 1 year ago #

    Hey lydiamann592, last night i tried something else and it kinda worked.
    this is what i did: i created a map in maps.google.com, downloaded the kml, opened in the editor and deleted all the <Style id = "StyleN"> and added instead

    <Style id = "anotherStyle">
         <IconStyle>
            <Icon><href>http://maps.google.com/mapfiles/kml/shapes/airports.png</href></Icon>
         </IconStyle>
     </Style>

    at the begining, right after:

    <Document>
      <name>grand canyon</name>
      <description><![CDATA[]]></description>

    (it's the google maps airport icon)
    and then, i added

    <styleUrl>#anotherStyle</styleUrl>

    to each Placemark, in my case it looked like:

    <Placemark>
            <name>Day 11 - Mile 167 </name>
        <atom:link href="http://www.flickr.com/photos/30071120@N02/8010497184/" rel="related"/>
        <description><![CDATA[<p><a href="http://www.flickr.com/people/30071120@N02/" target="_blank">mmaga</a> posted a photo:</p>
    <p><a href="http://www.flickr.com/photos/30071120@N02/8010497184/" title="Day 11 - Mile 167 - Waterfalls after a Monsoon at National Canyon" target="_blank"><img src="http://farm9.staticflickr.com/8181/8010497184_86e2d8420a_m.jpg" width="240" height="159" alt="Day 11 - Mile 167 - Waterfalls after a Monsoon at National Canyon"></a></p>]]></description>
        <styleUrl>#Alternate_style</styleUrl>
        <Point>
          <coordinates>-112.892929,36.257389,0.000000</coordinates>
        </Point>
      </Placemark>
      <Placemark>

    let me know if it works for you. It's not the most efficient way... but at least i could see the placemarks!
    I'd like to know if there is another thing we can try... Maybe alexanderzagniotov can help us? I loved the plugin and I hope we can find a work around to be able to use it!

  19. mmaga
    Member
    Posted 1 year ago #

    Hey @lydiamann592, i'm back working with the plugin and it didn't work for me, so i ran a validation with:
    http://www.kmlvalidator.com/validate.htm
    it turned out that the kml output from google maps had a lot of errors. so i had to delete some of the tags (i don't know enough to edit or troubleshoot it) until i had no errors. and then it worked.

    there's another plugin geo mash up. it's very similar. have you tried it?

  20. MKGees
    Member
    Posted 1 year ago #

    Afraid I gave up on this plugin and went for one where the place marks have to be added manually. Suspect I was also using dodgy KML, from GoogleEarth. Will keep an eye on this thread though, just in case.

  21. lydiamann592
    Member
    Posted 1 year ago #

    Thank you @mmaga for your input. I'll look into Geo mash up.
    @MKGees: can you post the name of the manual add plugin?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic