Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Sep 2013
    Posts
    25
    Thanks
    8
    Thanked 1 Time in 1 Post

    Using the Google Map Api

    I have some data in .kml that I want to use in a google map that I made in an html. This kml has boundaries that I want to include in my own custom map. I just can't figure out how to import the kml and add it to the existing map. I've found a KMLfetch at the documentation: https://developers.google.com/earth/documentation/kml

    I still can't figure out how to use this problem. Do you know of any way to add the .kml data to the google map?

  • #2
    New Coder
    Join Date
    Sep 2013
    Posts
    25
    Thanks
    8
    Thanked 1 Time in 1 Post
    I forgot to mention but if you happen to have any other method that you think would be more efficient to utilize the .kml data into a google maps embedded in a website, I would love to hear.

  • #3
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,969
    Thanks
    56
    Thanked 557 Times in 554 Posts
    you are looking at the google earth documentation. Try the google maps one:
    https://developers.google.com/maps/d...ples/layer-kml

    If you're still struggling, post the code you are working with so we don't have to play a guessing game

  • #4
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,346
    Thanks
    11
    Thanked 589 Times in 570 Posts
    you can always parse the kml in js and use the js api of gmaps to draw your features.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •