Feature

定义要素对象.

示例

var feature = {
            type: "Feature",
            id:19,
            geometry:{
                type: "Point",
                coordinates: [104.150391, 35.817813]
            }
            properties:{
                name: "名称"
            }   
        };

属性

属性 类型 描述
type string 值为 Feature
id Number 要素对象的唯一标识,添加要素的时候后台自动生成一个id,要素更新和删除的时候都是根据id来操作
geometry Geometry 空间对象
properties Object 属性对象,如:properties.name获取属性为name的值

results matching ""

    No results matching ""