利用OpenLayers怎样实现定位查询?

lgsws 2008-09-05 10:05:00
通常在WebGIS中都能够实现类似于用户输入待查找的对象的名称,查询到符合条件的对象后,会在目标位置添加一个标记。
假设待查询对象名称存储在变量Name中,请问利用OpenLayers怎样实现这个定位查询?请高手指点!小女先在此表示衷心的感谢啦。
...全文
1438 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
真不知道是谁 2011-01-19
  • 打赏
  • 举报
回复
http://blog.csdn.net/mach365/archive/2011/01/19/6151827.aspx
  • 打赏
  • 举报
回复
1. On the server side, expose a WMS service.
2. On the client side, Define a Marker Layer in the OpenLayers layer stack
3. Send request=GetFeatureInfo to the WMS on the Marker Layer.
4. Create a new marker according to the mouse click and add this feature to the Marker layer.
5. Parse the returning in the response.responseText from the server and display the attributes.
rodger_yuan 2008-10-05
  • 打赏
  • 举报
回复
你要知道openlayers是客户端的代码,需要向服务器端请求数据才能知道对象在哪里啊!
从服务器端获得了对象的Extent之后,加上你的gutter,就可以居中定位地图了
lgsws 2008-09-07
  • 打赏
  • 举报
回复

请大侠们指点啊!
鞠躬致谢!

2,142

社区成员

发帖
与我相关
我的任务
社区描述
它是一种特定的十分重要的空间信息系统。它是在计算机硬、软件系统支持下,对整个或部分地球表层(包括大气层)空间中的有关地理分布数据进行采集、储存、管理、运算、分析、显示和描述的技术系统。
社区管理员
  • 地理信息系统
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧