duandian4501
2010-08-11 22:00
浏览 326
已采纳

将KML文件上传到数据库并显示在OpenLayers Map上

I want to create a simple form on my wordpress site so that people can upload KML files which will then be stored in the db and the route shown on on openlayers map - openstreetmap.

The project is for a hiking site for storing hiking routes.

Any docs for this/ forums / advice. I'm completely new to this map stuff.

Cheers

Andy

图片转代码服务由CSDN问答提供 功能建议

我想在wordpress网站上创建一个简单的表单,以便人们可以上传KML文件,然后将其存储在 openlayers地图上显示的数据库和路由 - openstreetmap。

该项目是一个徒步旅行网站,用于存放徒步旅行路线。

此/论坛/建议的任何文件。 我是这个地图的新手。

干杯

Andy

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 收藏
  • 邀请回答

3条回答 默认 最新

  • duangutang3940 2010-08-25 13:31
    已采纳

    Here is an example of an openstreetmap with a kml overlay done in openstreetmap: http://maps.burningsilicon.net/

    Before working through this example, I recommend to read some introductory documentation on openlayers, since its inner workings are not always trivial to understand.

    Don't forget to put some restrictions on the uploaded kml files. You should either limit the size and/or the number of nodes, since the huge kml files generated by gps trackers can easily bog the browser down. Alternatively, you can also simplify the uploaded kml files with gpsbabel (http://www.gpsbabel.org/).

    If this sounds too complicated to you, Google Maps might be an option.

    评论
    解决 无用
    打赏 举报
查看更多回答(2条)

相关推荐 更多相似问题