简体   繁体   English

MAPGUIDE的FDO层

[英]FDO Layers from MAPGUIDE

I am trying to add MapGuide Layers that are NOT jpg as shown in the example. 我正在尝试添加非jpg的MapGuide图层,如示例中所示。

 var mdf = 'Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition'; var agentUrl = 'http://data.mapguide.com/mapguide/mapagent/mapagent.fcgi?USERNAME=Anonymous'; var bounds = [-87.865114442365922, 43.665065564837931, -87.595394059497067, 43.823852564430069 ]; var map = new ol.Map({ layers: [ new ol.layer.Image({ extent: bounds, source: new ol.source.ImageMapGuide({ projection: 'EPSG:4326', url: agentUrl, useOverlay: false, metersPerUnit: 111319.4908, //value returned from mapguide params: { MAPDEFINITION: mdf, FORMAT: 'PNG' }, ratio: 2 }) }) ], target: 'map', view: new ol.View({ center: [-87.7302542509315, 43.744459064634], projection: 'EPSG:4326', zoom: 12 }) }); 
 <link href="//cdnjs.cloudflare.com/ajax/libs/ol3/3.4.0/ol.min.css" rel="stylesheet" /> <script src="//cdnjs.cloudflare.com/ajax/libs/ol3/3.4.0/ol.js"></script> <div id="map"></div> 

My layer source is from a SHP file this format shown in the sample code above is for PNG, and or Image data type. 我的图层源来自SHP文件,该格式在上面的示例代码中显示为PNG和/或Image数据类型。 What is the correct coding to use a Map definition or data source that is data not an image? 使用不是数据而不是图像的地图定义或数据源的正确编码是什么?

Thanks, and thanks for understanding that I am new to this and may be asking far more questions... 谢谢,也感谢您理解我是新手,并且可能会问更多的问题...

Not sure if this is your issue, but the current stable versions of MapGuide do not support coordinate system transformations via WFS. 不知道这是否是您的问题,但是MapGuide的当前稳定版本不支持通过WFS进行坐标系转换。

The mapguide-rest project is the best way I know of to get transformed vector features from MapGuide. mapguide-rest项目是我所知从MapGuide获得变换矢量特征的最好方法。 I used mapguide-rest to get transformed vectors in GeoJSON format. 我使用mapguide-rest来获取GeoJSON格式的转换向量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM