Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在地图文件中准备了 3 个 shapefile,并在地图服务器上渲染它。我需要的是这些层叠加在另一个之上。我该怎么做
这会有帮助吗?
对于您在评论中的问题,
一般的 openlayers 示例您还会发现Geoext很有用。
在示例中,您可以看到将图层添加到打开图层的不同方法
当您在 openlayers 中定义地图时,您应该定义一个或多个 BaseLayer(但一次只显示其中一个)。在这些图层上,您可以根据需要加载尽可能多的叠加层。
在这里查看OpenLayers 中叠加层的定义。
这是使用 OpenLayers 进行叠加的示例。
无论如何,您可以通过谷歌搜索找到很多示例。