Google 地图API资料整理及详细介绍

 更新时间:2016年08月06日 16:36:06   投稿:lqh  
本文主要介绍Google 地图API资料,这里整理了Google地图API的基本知识,并详解每个函数的意思,有需要的小伙伴可以参考下

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资料整理,后续继续补充相关知识,谢谢大家对本站的支持!

相关文章

  • JavaScript Dom对象的操作

    JavaScript Dom对象的操作

    这篇文章主要介绍了JavaScript Dom对象的操作,文张以浏览器网页就是一个Dom树形结构做为核心,然后根据核心进行更新Dom节点、获得Dom节点、删除一个Dom节点、添加一个新的节点操作,下面文章是详细内容,需要的朋友可以参考以下
    2021-11-11
  • 微信小程序 常见问题总结(4058,40013)及解决办法

    微信小程序 常见问题总结(4058,40013)及解决办法

    这篇文章主要介绍了微信小程序 常见问题总结及解决办法的相关资料,这里首先对微信小程序的结构进行了介绍,然后对常见问题进行说明讲解,需要的朋友可以参考下
    2017-01-01
  • 微信小程序实现拖拽 image 触摸事件监听的实例

    微信小程序实现拖拽 image 触摸事件监听的实例

    这篇文章主要介绍了微信小程序实现拖拽 image 触摸事件监听的实例的相关资料,这里提供image触摸并监听的简单实例,需要的朋友可以参考下
    2017-08-08
  • 微信小程序中使用Promise进行异步流程处理的实例详解

    微信小程序中使用Promise进行异步流程处理的实例详解

    这篇文章主要介绍了微信小程序中使用Promise进行异步流程处理的实例详解的相关资料,这里详细说明该如何使用Promise 来进行异步流程的处理,提供具体实现步骤,需要的朋友可以参考下
    2017-08-08
  • 微信小程序返回多级页面的实现方法

    微信小程序返回多级页面的实现方法

    这篇文章主要介绍了微信小程序返回多级页面的实现方法的相关资料,希望通过本文能帮助到大家,让大家实现这样的功能,需要的朋友可以参考下
    2017-10-10
  • 微信小程序 数据遍历的实现

    微信小程序 数据遍历的实现

    这篇文章主要介绍了微信小程序 数据遍历的实现的相关资料,需要的朋友可以参考下
    2017-04-04
  • JavaScript知识:构造函数也是函数

    JavaScript知识:构造函数也是函数

    构造函数就是初始化一个实例对象,对象的prototype属性是继承一个实例对象。本文给大家分享javascript构造函数详解,对js构造函数相关知识感兴趣的朋友一起学习吧
    2021-08-08
  • 微信小程序获取用户openId的实现方法

    微信小程序获取用户openId的实现方法

    这篇文章主要介绍了微信小程序获取用户openId的实现方法的相关资料,需要的朋友可以参考下
    2017-05-05
  • 关于JavaScript轮播图的实现

    关于JavaScript轮播图的实现

    这篇文章主要介绍了关于JavaScript轮播图的实现,下面文章主要是利用利用html 和 css 代码实现轮播图,详细内容请参考下面详细内容,希望对你有所帮助
    2021-11-11
  • 详解微信小程序Page中data数据操作和函数调用

    详解微信小程序Page中data数据操作和函数调用

    这篇文章主要介绍了详解微信小程序Page中data数据操作和函数调用的相关资料,希望通过本文能帮助到大家掌握这方法,需要的朋友可以参考下
    2017-09-09

最新评论