谷歌地图简码

Place a Map Anywhere You Want

  • Sample Usages:

    • Page Header
    • Sidebar Widget
    • Content Element
    • Contact Page Box
    • Page Footer
Get The Code

[gmap height="250px" latitude="40.714353" longitude="-74.005973"]

Customize The Entire Look

Get The Code

[gmap height="400px" latitude="40.714353" longitude="-74.005973" marker="standard" color="#ff6c36" marker_icon="/wp-content/uploads/2013/04/gmap_marker_1_v01.png"]You can plce some text here…[/gmap]

Shortcode documentation

  • id
    ID属性指定HTML元素的ID
    必须是HTML文档中唯一的
    (主要为附加的CSS/JS)
  • class
    这个类属性指定HTML元素类名
    (主要为附加的CSS/JS)
  • width
    地图宽如. 800px (留空100%宽)
  • height
    地图高如500px
  • type
    地图接口。简单没有控制
    适用的选项:
    • simple - 简单
    • rich - 丰富
  • color
  • invert_lightness
    适用的选项:
    • 0 - 无
    • 1 - 标准
  • map_type
    适用的选项:
    • roadmap - 路图
    • satellite - 卫星图
    • hybrid - 混合
    • terrain - 地势
  • latitude
    集中地图指定点(如. 40.714353 for New York, USA)
  • longitude
    集中地图指定点(如. -74.005973 for New York, USA)
  • zoom
    初始显示地图分辨率(默认15)
  • marker
    决定是否想显示标记在地图上
    适用的选项:
    • none - 无
    • standard - 标准
    • open-bubble - 使用开发泡
  • marker_icon
    可选。如果留空默认标记被使用