摘要: function init() { var wfs = OpenLayers.Protocol.WFS({ url: "http://localhost/cgi-bin/mapserv.exe?map=D:/ms4w/Apache/cgi-bin/wfs.map&", featureType: "lake", srsName: "EPSG:3978", geometryName: "GEOM", featurePrefix: "ms" }); var map = new OpenLaye 阅读全文
posted @ 2011-08-01 16:44 一路遥遥 阅读(1446) 评论(0) 推荐(0)
摘要: 代码如下:function init() { var map = new OpenLayers.Map( { div: "map", //下面很重要,如果不设置,每个图片都按照BBOX:-180,-90,90-270这样的经纬度去找,对于用meters来做的mapfile是找不到图的,白屏 maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90), maxResolution: "auto", units: 'METERS', projection: "EPSG:3978" 阅读全文
posted @ 2011-08-01 15:34 一路遥遥 阅读(2302) 评论(0) 推荐(0)