MultiPolyline

概述

扩展FeatureGroup用于创建多条线段,包含多条线段的单个图层,只有一个样式和popup

创建(Creation)

创建:

创建 描述
FMap.multiPolyline( <LatLng[][]> latlngs, <Polyline options> options? ) 根据二维数组形式的地理坐标点和可选的option对象实例化一个polyline 对象

方法(Methods)

方法:

方法 参数 返回值 描述
setLatLngs() <LatLng[][]> latlngs this 用给定的地理坐标点数组替换所有线段及其路径
getLatLngs() <LatLng[][]> latlngs 返回每条线段的地理坐标点数组
openPopup() this 打开之前用bindPopup()方法绑定的popup
toGeoJSON() Object 返回multipolyline的GeoJSON表示(GeoJSON MultiLineString 功能)

results matching ""

    No results matching ""