GeoJsonParserBase

GeoJsonParserBase

GeoJsonParserBase Parser的祖先类

Members

Methods

loadAsync(url)

异步调入指定url的GeoJson数据
Name Type Description
url string

onLineString(points,properties)

当解析出每一个LineString类型时回调
Name Type Description
points Vector3[] 点数组
properties object 关联属性

onMultiLineString(pointsArray,properties)

当解析出每一个MultiLineString类型时回调
Name Type Description
pointsArray Vector3[][] 点二维数组
properties object 关联属性

onMultiPoint(points,properties)

当解析出每一个MultiPoint类型时回调
Name Type Description
points Vector3[] 点数组
properties object 关联属性

onPoint(point,properties)

当解析出每一个Point类型时回调
Name Type Description
point Vector3
properties object 关联属性

onPolygon(points,holes,properties)

当解析出每一个Polygon类型时回调
Name Type Description
points Vector3[] 多边形轮廓
holes Vector3[][]
properties object 关联属性