【问题标题】:How to create a WFS Layer in Openlayers 3 from MapServer Source如何从 MapServer Source 在 Openlayers 3 中创建 WFS 层
【发布时间】:2014-10-02 06:19:36
【问题描述】:

我还没有找到如何在 OpenLayers 3 中通过 WFS 处理 MapServer、特定向量的示例。如果有人可以提供示例,将不胜感激。

例如:这是我在 Openlayers 2 中通过 WFS 请求从 MapServer 创建矢量图层的方式:

baseLayer = new OpenLayers.Layer.Vector( "test",
    {
        style: {fillColor: "green"},
        strategies: [new OpenLayers.Strategy.Fixed()],
        protocol: new OpenLayers.Protocol.WFS(
        {
            version: "1.0.0",
            url: "http://localhost/cgi-bin/mapserv?map="+mapPath,
            featureType: "test",
        }),
            isBaseLayer: true,
            projection: new OpenLayers.Projection("EPSG:31255")
        });

map.addLayer(baseLayer);

OpenLayers 3 中的等价物是什么?

【问题讨论】:

    标签: mapserver openlayers-3


    【解决方案1】:

    查看这个关于 OL3 和 mapserver 的教程,看看它是否有帮助 http://vipassanaandenvironmentalinformatics.blogspot.com/2013/06/web-gis-development-using-openlayers-3.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多