作者:php.cn 更新时间:2022-04-14 16:36:56
Google 地图参考手册
Google 地图API 参考手册
地图
构造函数/对象 | 描述 |
---|
Map() | 在指定的 HTML 容器中创建新的地图,该容器通常是一个DIV元素。 |
叠加层
构造函数/对象 | 描述 |
---|
Marker | 创建一个标记。 |
MarkerOptions | 标记的选项。由DirectionsRenderer渲染的所有标记都将使用这些选项。 |
MarkerImage | A structure representing a Marker icon or shadow image |
MarkerShape | Defines the marker shape to use in determination of a marker's clickable
region (type and coord) |
Animation | Specifies animations that can be played on a marker (bounce or drop) |
InfoWindow | Creates an info window |
InfoWindowOptions | Options for rendering the info window |
Polyline | Creates a polyline (contains path and stroke styles) |
PolylineOptions | Options for rendering the polyline |
Polygon | Creates a polygon (contains path and stroke+fill styles) |
PolygonOptions | Options for rendering the polygon |
Rectangle | Creates a rectangle (contains bounds and stroke+fill styles) |
RectangleOptions | Options for rendering the rectangle |
Circle | Creates a circle (contains center+radius and stroke+fill styles) |
CircleOptions | Options for rendering the circle |
GroundOverlay | |
GroundOverlayOptions | |
OverlayView | |
MapPanes | |
MapCanvasProjection | |
事件
构造函数/对象 | 描述 |
---|
MapsEventListener | It has no methods and no constructor. Its instances are returned from
addListener(), addDomListener() and are eventually passed back to
removeListener() |
event | Adds/Removes/Trigger event listeners |
MouseEvent | Returned from various mouse events on the map and overlays |
控件集
构造函数/对象 | |
---|
MapTypeControlOptions | 保存用于修改控件的选项(位置和样式) |
MapTypeControlStyle | 指定要显示哪种地图控件(Dro) p -向下菜单或
按钮) |
overviewMapControloptions | 用于渲染概述地图控件(打开或倒塌) |
Pancontroloptions | pantecontroloptionsfor Pan Control(position) |
RotateControloPtions | pantroptions |
旋转控件(位置) | ScaleControlOptions |
用于渲染缩放控件(位置和样式)的选项 | ScaleControlStyle |
指定要显示哪种类型的缩放控件 | StreetViewControlOptions |
渲染选项街景街景小人控件的(位置) | ZoomControlOptions |
用于渲染缩放控件的选项(位置和样式) | ZoomControlStyle |
指定要显示哪种缩放控件(大或小) | ControlPosition |
指定控件在地图上的位置
🎜🎜