Google图层类
SuperMap. |
Google图层类 |
Constants | |
MAX_ZOOM_LEVEL | {Integer} 最大缩放等级,为21。 |
MIN_ZOOM_LEVEL | {Integer} 最小缩放等级,为0。 |
RESOLUTIONS | {Array(Float)} 分辨率数组。 分辨率数组值为固定值,这样会更接近wms的标准投影。 |
Properties | |
dpi | {Float} 屏幕上每英寸包含像素点的个数。 该参数结合图层比例尺可以推算出该比例尺下图层的分辨率.默认为96。 |
sphericalMercator | {Boolean} 是否使用墨卡托投影,默认值为false。 如果使用墨卡托投影,将会导致所有与地图的互动实际上是与地图投影的互动,其支持矢量绘图,地图叠加等。 |
type | {GMapType} 指定需要获取的图层类型,默认值为unll,表示图层为“G_STREETS_MAP”。 Google服务提供的图层类型有:PHYSICAL、HYBRID、SATELLITE、STREETS。 |
wrapDateLine | {Boolean} 允许水平方向调整。默认为true。 当<sphericalMercator>为true时,设置此项为false可以限制水平方向调整。 |
Constructor | |
SuperMap. |
Google图层构造函数 |
Functions | |
destroy | 清理此图层. |
display | 显示或隐藏图层 |
getLatitudeFromMapObjectLonLat | |
getLongitudeFromMapObjectLonLat | |
getMapObjectCenter | {Object} The mapObject’s current center in Map Object format |
getMapObjectZoom | {Integer} The mapObject’s current zoom, in Map Object format |
getOLBoundsFromMapObjectBounds | |
getWarningHTML | {String} String with information on why layer is broken, how to get it working. |
getXFromMapObjectPixel | |
getYFromMapObjectPixel | |
removeMap | On being removed from the map, also remove termsOfUse and poweredBy divs |
setOpacity | 为全部图层设置不透明度。 |
setVisibility | 为图层设置可见性标记、相应的显示/隐藏及重绘。触发事件除非其他规定。 |
Constants | |
SuperMap. |
Mixin providing functionality specific to the Google Maps API v2. |
Functions | |
dragPanMapObject | |
getMapObjectBoundsFromOLBounds | |
getMapObjectLonLatFromLonLat | |
getMapObjectLonLatFromMapObjectPixel | |
getMapObjectPixelFromMapObjectLonLat | |
getMapObjectPixelFromXY | |
getMapObjectZoomFromMapObjectBounds | |
onMapResize | |
setMapObjectCenter | Set the mapObject to the specified center and zoom |
removeMap: function( map )
On being removed from the map, also remove termsOfUse and poweredBy divs
map | {SuperMap.Map} |
getOLBoundsFromMapObjectBounds: function( moBounds )
moBounds | {Object} |
{SuperMap.Bounds} An SuperMap.Bounds, translated from the passed-in MapObject Bounds. Returns null if null value is passed in.
getMapObjectBoundsFromOLBounds: function( olBounds )
olBounds | {SuperMap.Bounds} |
{Object} A MapObject Bounds, translated from olBounds Returns null if null value is passed in
为图层设置可见性标记、相应的显示/隐藏及重绘。触发事件除非其他规定。
setVisibility: function( visible )
显示或隐藏图层
display: function( visible )
为全部图层设置不透明度。
setOpacity: function( opacity )
清理此图层.
destroy: function()
On being removed from the map, also remove termsOfUse and poweredBy divs
removeMap: function( map )
getOLBoundsFromMapObjectBounds: function( moBounds )
{String} String with information on why layer is broken, how to get it working.
getWarningHTML:function()
{Object} The mapObject’s current center in Map Object format
getMapObjectCenter: function()
{Integer} The mapObject’s current zoom, in Map Object format
getMapObjectZoom: function()
getLongitudeFromMapObjectLonLat: function( moLonLat )
getLatitudeFromMapObjectLonLat: function( moLonLat )
getXFromMapObjectPixel: function( moPixel )
getYFromMapObjectPixel: function( moPixel )
onMapResize: function()
getMapObjectBoundsFromOLBounds: function( olBounds )
Set the mapObject to the specified center and zoom
setMapObjectCenter: function( center, zoom )
dragPanMapObject: function( dX, dY )
getMapObjectLonLatFromMapObjectPixel: function( moPixel )
getMapObjectPixelFromMapObjectLonLat: function( moLonLat )
getMapObjectZoomFromMapObjectBounds: function( moBounds )
getMapObjectLonLatFromLonLat: function( lon, lat )
getMapObjectPixelFromXY: function( x, y )