Google Maps API 2.0解析(17-GSmallMapControl和GSmallZoomControl两个简单的控件)
2006-08-18 17:17
951 查看
原来这俩个控件的代码这么简单
//GSmallZoomControl控件
function GSmallZoomControl()
GSmallZoomControl.prototype=new GControl();
GSmallZoomControl.prototype.initialize=function(a)
GSmallZoomControl.prototype.getDefaultPosition=function()
//GSmallMapControl控件
function GSmallMapControl()
GSmallMapControl.prototype=new GControl();
GSmallMapControl.prototype.initialize=function(a)
GSmallMapControl.prototype.getDefaultPosition=function()
return new GControlPosition(0,new GSize(7,7))
};
//GSmallZoomControl控件
function GSmallZoomControl()
GSmallZoomControl.prototype=new GControl();
GSmallZoomControl.prototype.initialize=function(a)
GSmallZoomControl.prototype.getDefaultPosition=function()
//GSmallMapControl控件
function GSmallMapControl()
GSmallMapControl.prototype=new GControl();
GSmallMapControl.prototype.initialize=function(a)
GSmallMapControl.prototype.getDefaultPosition=function()
return new GControlPosition(0,new GSize(7,7))
};
相关文章推荐
- Google Maps API 2.0解析(10-GMapType GTileLayer _GoogleMapMercSpec _KeyholeMapMercSpec地图类型)
- Google Maps API 2.0解析(0-序言)
- Google Maps API 2.0解析(4-公用函数)
- Google Maps API 2.0解析(11-GCopyrightCollection动态向图片服务器请求代码)
- Google Maps API 2.0解析(13-支持以前1.0版本的GMap)
- Google Maps API 2.0解析(11-GKeyboardHandler支持键盘操作的类)
- Google Maps API 2.0解析(18-GValidateKey进行api key验证的函数)
- Google Maps API 2.0解析(1-API加载)
- Google Maps API 2.0解析(3-GEvent事件功能支持)
- Google Maps API 2.0解析(19-GArrow一直不为人知的一种标注)
- Google Maps API 2.0解析(2-GBrowser)
- Google Maps API 2.0解析(5-GPoint GSize GBounds)
- 对Google Maps API的JS文件解析(map.js)
- Google Maps API 2.0解析(9-GProjection GMercatorProjection关于投影坐标系统)
- Google Maps API 2.0解析(6-GLatLng GLatLngBounds GLngSegment GLatSegment经纬度支持的类)
- Google Maps API 2.0解析(14-接口方法定义)
- Google Maps API 2.0解析(7-GTicks和地图图片相关的函数)
- Google Maps API 2.0解析(15-GXslt和GXmlHttp实现AJAX)
- Google Maps API 2.0解析(8-GDragPanel dragPoint用来支持拖动的类)
- Google Maps API 2.0解析(16-GLog进行输出和调试的类)