Loading a local .kml file using google maps?

前端 未结 4 2029
时光取名叫无心
时光取名叫无心 2020-12-04 11:27

I created a hello world program to load a local kml file (borrowed from google\'s docs):

var ctaLayer = new google.maps.KmlLayer(\"http://localhost:8080/kml/         


        
4条回答
  •  一生所求
    2020-12-04 11:59

    The KML can't be accessed since it's on your local machine and google can't access that since it doesn't know how to get to localhost:8080

提交回复
热议问题