请问如何得到当前显示区域的四个角的坐标?

0 views
Skip to first unread message

老田

unread,
Oct 23, 2006, 9:21:04 PM10/23/06
to 灵图地图接口讨论区
我的数据库里有一些标注的信息,希望用户移动到某区域时,我的标注能够显示出来。
怎么得到当前区域的经纬范围呢?
谢谢!

chenchen

unread,
Oct 23, 2006, 9:46:49 PM10/23/06
to 灵图地图接口讨论区
您好 类LTMaps提供了getBoundsLatLng()方法,
获取当前地图显示的地理区域范围。此外,类
LTBounds提供了containsBounds(bounds)返回该区域(LTBounds)是否包含指定的区域(LTBounds)和containsPoint(point)方法返回该区域(LTBounds)是否包含指定的点(LTPoint)。您可以结合使用。在线类说明参考文档请见:http://api.51ditu.com/docs/mapsapi/reference.html#LTBounds

关于该类示例请看论坛:http://groups.google.com/group/Goolgle-Map-Chinese/browse_frm/thread/a1f4bf546092b299/#

谢谢

老田

unread,
Oct 23, 2006, 10:09:45 PM10/23/06
to 灵图地图接口讨论区
多谢!!
回复速度真快,赞!

老田

unread,
Oct 23, 2006, 9:31:33 PM10/23/06
to 灵图地图接口讨论区

zhang zhangchen

unread,
Oct 23, 2006, 10:10:41 PM10/23/06
to Goolgle-M...@googlegroups.com


2006/10/24, 老田 <duc...@gmail.com>:
多谢!!
回复速度真快,赞!


Reply all
Reply to author
Forward
0 new messages