问题描述
我已经复制了Google示例的所有文件到我的电脑,但当我勾选复选框时,KML图层不会出现。
我复制的文件是:
我也将这些复制到,它在那里也不起作用。
我错过了什么吗?我需要为要加载的文件设置一个环境吗?
它似乎是一个Web服务器配置问题。当我尝试访问,我得到一个500服务器错误。在我看来,functions.js试图访问该URL。所以,我会研究一下。相比之下,愉快地提供了KML文件。
I have copied all of the files for the Google example http://gmaps-samples-v3.googlecode.com/svn/trunk/toomanymarkers/toomanymarkers.html to my PC, but the KML layer does not appear when I tick the checkbox.
The files I copied are:
- functions.js
- markers.js
- markers.kml
- toomanymarkers.html
I have also copied these to http://www.performit.co.uk/misc/maps/toomanymarkers/toomanymarkers.html and it doesn't work there either.
Am I missing something? Do I need to have an environment set up for the files to load?
It appears to be a web server configuration issue. When I try to access http://www.performit.co.uk/misc/maps/toomanymarkers/markers.kml, I get a 500 server error. It appears to me that functions.js tries to access that URL. So, I'd look into that. By comparison, http://gmaps-samples-v3.googlecode.com/svn/trunk/toomanymarkers/toomanymarkers.html happily serves up the KML file.
这篇关于让KML层在本地工作(例如Google TooManyMarkers示例)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!