Google地图中文API手册login
Google地图中文API手册
作者:php.cn  更新时间:2022-04-14 16:36:56

Google 地图参考手册



Google 地图API 参考手册

地图

构造函数/对象描述
Map()在指定的 HTML 容器中创建新的地图,该容器通常是一个DIV元素。

叠加层

构造函数/对象描述
Marker创建一个标记。
MarkerOptions标记的选项。由DirectionsRenderer渲染的所有标记都将使用这些选项。
MarkerImageA structure representing a Marker icon or shadow image
MarkerShapeDefines the marker shape to use in determination of a marker's clickable region (type and coord)
AnimationSpecifies animations that can be played on a marker (bounce or drop)
InfoWindowCreates an info window
InfoWindowOptionsOptions for rendering the info window
PolylineCreates a polyline (contains path and stroke styles)
PolylineOptionsOptions for rendering the polyline
PolygonCreates a polygon (contains path and stroke+fill styles)
PolygonOptionsOptions for rendering the polygon
RectangleCreates a rectangle (contains bounds and stroke+fill styles)
RectangleOptionsOptions for rendering the rectangle
CircleCreates a circle (contains center+radius and stroke+fill styles)
CircleOptionsOptions for rendering the circle
GroundOverlay 
GroundOverlayOptions 
OverlayView 
MapPanes 
MapCanvasProjection 

事件

构造函数/对象描述
MapsEventListenerIt has no methods and no constructor. Its instances are returned from addListener(), addDomListener() and are eventually passed back to removeListener()
eventAdds/Removes/Trigger event listeners
MouseEventReturned from various mouse events on the map and overlays

控件集

​​旋转控件(位置)用于渲染缩放控件(位置和样式)的选项指定要显示哪种类型的缩放控件渲染选项街景街景小人控件的(位置)用于渲染缩放控件的选项(位置和样式)指定要显示哪种缩放控件(大或小)指定控件在地图上的位置
构造函数/对象
MapTypeControlOptions保存用于修改控件的选项(位置和样式)
MapTypeControlStyle指定要显示哪种地图控件(Dro) p -向下菜单或 按钮)
overviewMapControloptions用于渲染概述地图控件(打开或倒塌)
Pancontroloptionspantecontroloptionsfor Pan Control(position)
RotateControloPtionspantroptions
ScaleControlOptions
ScaleControlStyle
StreetViewControlOptions
ZoomControlOptions
ZoomControlStyle
ControlPosition
🎜🎜

PHP中文网