new ThemeFeature(geometry, attributes)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/mapboxgl/iclient-mapboxgl.js"></script>
<script>
new mapboxgl.supermap.ThemeFeature(geometry, attributes);
</script>
// ES6 Import
import { ThemeFeature } from '@supermapgis/iclient-mapboxgl';
new ThemeFeature(geometry, attributes);
mapboxgl/overlay/theme/ThemeFeature.js, line 11
Name | Type | Description |
---|---|---|
geometry |
GeoJSONObject |
专题图要素几何对象。 |
attributes |
Object |
可选
几何对象属性。 |
Methods
-
toFeature()
mapboxgl/overlay/theme/ThemeFeature.js, line 26 -
转为矢量要素。