时间:2021-05-28
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 Holds options for modifying a control (position and style) MapTypeControlStyle Specifies what kind of map control to display (Drop-down menu or buttons) OverviewMapControlOptions Options for rendering of the overview map control (opened or collapsed) PanControlOptions Options for rendering of the pan control (position) RotateControlOptions Options for rendering of the rotate control (position) ScaleControlOptions Options for rendering of the scale control (position and style) ScaleControlStyle Specifies what kind of scale control to display StreetViewControlOptions Options for rendering of the street view pegman control (position) ZoomControlOptions Options for rendering of the zoom control (position and style) ZoomControlStyle Specifies what kind of zoom control to display (large or small) ControlPosition Specifies the placement of controls on the map
以上就是对 Google 地图API资料整理,后续继续补充相关知识,谢谢大家对本站的支持!
声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
Google地图-叠加层叠加层是地图上绑定到经度/纬度坐标的对象,会随您拖动或缩放地图而移动。Google地图API有如下几种叠加层:1.地图上的点使用标记来显
比如页面调用google地图的api时就使用到了promise。functionsuccess(position){varcords=position.coor
复制代码代码如下:Google静态地图API#divStaticMapspan{color:Gray;font-size:12px;}#divStaticMap
1.在使用googleapi之前,我们需要先申请一个key,作为唯一的标示加在url后面。2.google地图api里面有一个可以查询到某个地点的详细信息的地址
最近做了个项目,其中项目中有个需求需要用到百度地图进行导航,通过查阅相关资料参考百度地图api完成了一个例子。示例一:API地址:http://develope