如何使用Openlayers地图 [英] how to use Openlayers map

查看:91
本文介绍了如何使用Openlayers地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对这个openlayers地图完全感到困惑.即使有很多示例和Wiki,我也找不到如何重用它.我的意思是我想显示可以由管理员管理的城市地图,管理员可以添加点和位置,并且应该显示在前端.请帮我怎么做?

解决方案

Conley 所述, OpenLayers 主要是用于显示的 JavaScript 实用程序地理数据.因此,它要求您有权访问要显示的地理数据. OpenStreetMap Google地图是免费的,并且有很多示例讨论如何使用它们-> OpenLayers.org 上.

我建议您集中精力显示数据(您的城市地图),然后实施 admin 部分,在其中使用 OpenLayers 添加诸如线多边形.请记住,如果要存储几何图形,则将需要类似 GeoServer 或类似服务器的服务器. >

快乐的映射:)

I am totally confused with this openlayers map. Even there are many examples and wiki, i could not find how to reuse it. I mean i want to show my city map with managable by admin, admin can add points and locations and it should displayed in front end. Please please help me how to do it?

解决方案

Like Conley writes, OpenLayers is mainly a JavaScript utility for displaying geographical data. Thus it requires that you have access to the geographical data you want to display. OpenStreetMap and Google Maps are free, and there are plenty of examples discussing how to use them -> here or on OpenLayers.org.

I would suggest that you focusing on displaying the data (your city map), and then implement the admin part where you use OpenLayers for adding geometry like points, lines and polygons afterwards. Remember that if you want to store geometry, you will need a server like GeoServer or similar.

Happy mapping :)

这篇关于如何使用Openlayers地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆