自定义CustomGeoJsonLayer图层,从geoJson文件中加载矢量数据
    
    
    
    
    
    
        
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| options | Object | 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| global | * | ys.earth | 
Methods
- 
    
    清空feature
- 
    
    销毁
- 
    getById(id) → PointFeature|LineFeature|PolygonFeature
- 
    
    根据id查找featureName Type Description idString feature的id Returns:
- 
    
    加载
- 
    
    删除featureName Type Description featurePointFeature | LineFeature | PolygonFeature feature 
- 
    
    根据id删除featureName Type Description idString feature的id 
- 
    
    设置feature的样式Name Type Description featurePointFeature | LineFeature | PolygonFeature feature styleObject 样式 Name Type Default Description pointObject {}optional 点样式 Name Type Default Description colorColor new Color(1.0, 1.0, 1.0, 1.0)optional 点颜色 pixelSizeNumber 14optional 点大小 outlineColorColor new Color(0.0, 0.0, 0.0, 1.0)optional 点边框颜色 outlineWidthNumber 1.0optional 点边框宽度 heightNumber 0.0optional 点高程 heightReferenceHeightReference HeightReference.NONEoptional 点高程属性 lineObject {}optional 线样式 Name Type Default Description colorColor new Color(1.0, 1.0, 1.0, 1.0)optional 线颜色 widthNumber 1.0optional 线宽度 classificationTypeClassificationType ClassificationType.BOTHoptional 线分类类型 polygonObject {}optional 面样式 Name Type Default Description colorColor new Color(1.0, 1.0, 1.0, 1.0)optional 面颜色 outlineColorColor new Color(0.0, 0.0, 0.0, 1.0)optional 面边框颜色 outlineWidthNumber 1.0optional 面边框宽度 classificationTypeClassificationType ClassificationType.BOTHoptional 面分类类型 
- 
    
    设置feature显示或者隐藏Name Type Description featurePointFeature | LineFeature | PolygonFeature feature visibleBoolean 显示还是隐藏 
Events
- 
    
    点击事件Name Type Description featurePointFeature | LineFeature | PolygonFeature 点击的feature 
- 
    
    数据加载完成事件
