openlayer 加载wfs 2种方式
来源:互联网 发布:如何解除冻结淘宝封号 编辑:程序博客网 时间:2024/05/01 18:38
1.geojson
var geo = new OpenLayers.Layer.Vector("EarthQuake", { strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.HTTP({ url: 'http://172.31.170.98:8088/geoserver/weidong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=weidong:weidong-vectorlayer&maxFeatures=50&outputFormat=application/json', format: new OpenLayers.Format.GeoJSON({ignoreExtraDims: true}) })});
2.KML
buildsLayer = new OpenLayers.Layer.Vector('矢量图层', { projection: new OpenLayers.Projection('EPSG:4326'), protocol: new OpenLayers.Protocol.HTTP({ url: 'http://172.31.170.98:8088/geoserver/weidong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=weidong:weidong-vectorlayer&maxFeatures=50', format: new OpenLayers.Format.GML({ extractAttributes:true }) }), strategies: [new OpenLayers.Strategy.BBOX()] });var buildsLayer_style = new OpenLayers.Style({ 'fillOpacity': 0,'fillColor':"yellow",'strokeColor': 'yellow', 'strokeWidth': 0, 'pointRadius': 8 }); var buildsLayer_style_map = new OpenLayers.StyleMap({ 'default': buildsLayer_style}); buildsLayer.styleMap = buildsLayer_style_map;
url可以在geoserver 中预览视图中得到
0 0
- openlayer 加载wfs 2种方式
- openlayer之加载wfs服务
- Geoserver + openlayer wfs
- openlayers2 wfs方式加载矢量图层
- openlayer加载shapefile
- openlayer绘图时禁止移动地图的两种方式
- OpenLayer
- OpenLayer
- 使用Openlayer利用GeoServer编辑要素到postGIS注意问题(WFS-T)
- openlayer 加载geojson数据不显示问题
- openlayer3加载geoserver发布的WFS服务
- skyline加载wfs,wms服务参考
- Openlayers3 加载 GeoServer WFS的实现
- cesium加载WFS服务(GeoServer发布)
- ol2加载ArcGis发布的wfs
- wfs方式获取最短路径
- Openlayers WFS返回结果解析:JS普通方式、JQuery方式
- 如何使用OpenLayer发布离线地图 2
- DNS 欺骗原理
- zngnqfxtuubuosmo
- git 问题整理
- android 开源优秀项目
- 分享开发者必备平台汇总
- openlayer 加载wfs 2种方式
- yii框架中jquery实现删除后重定向页面
- 微信二次开发!
- SDWebImage使用,图片加载和缓存
- 随笔
- #Android笔记#简便地退出程序
- css3 竖排显示
- 我是如何成长为系统架构师的
- C#TextBox自动提示、自动补全、自动完成功能