Class: ThemeFeature

ThemeFeature

专题图要素类。支持的 geometry 参数类型为 ol.geom.Geometry 和 GeometryGeoText 标签数组类型。

new ThemeFeature(geometry, attributes)

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
  new ol.supermap.ThemeFeature(geometry, attributes);
  
</script>

// ES6 Import
import { ThemeFeature } from '@supermapgis/iclient-ol';

new ThemeFeature(geometry, attributes);

openlayers/overlay/theme/ThemeFeature.js, line 11
Name Type Description
geometry Object

要量算的几何对象,支持 ol.geom.Geometry 和 GeometryGeoText 标签数组类型 geometry = [x,y,text]。

attributes Object 可选

属性。

Methods

toFeature()

openlayers/overlay/theme/ThemeFeature.js, line 27

转为矢量要素。