GIS足迹

用地图装点生活的每个角落。MSN:gisfoot@hotmail.com。QQ交流群1:42019368(已满);QQ交流群2:85857545。

关于google map api中的球平投影算法接口: GProjection和GMercatorProjection类

google map api中有个很有用的接口:GProjection,官方对这个接口的解释是:
    This is the interface for map projections. A map projection instance is passed to the constructor of GMapType. This interface is implemented by the class GMercatorProjection, which is used by all predefined map types. You can implement this interface if you want to define map types with different map projections.
    这个接口最大的作用,就是允许你使用自己的球平算法去投影地图,其中的fromPixelToLatLng()和fromPixelToLatLng()非常重要,他们表示了从经纬度和pixel之间的转换算法。

分页:[«]1[»]

Powered By Z-Blog 1.8 Devo Build 80201  Theme By Bokezhuti.cn

UNISON UPDATE ICP备案号正在申请。Copyright ©2009 gis足迹. All Rights Reserved.