Class: ThemeFeature

ThemeFeature

客户端专题图要素类。 支持的 geometry 参数类型为 L.Point,L.LatLng,L.Polyline,L.Polygon

new ThemeFeature(geometry, attributes)

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  new L.supermap.ThemeFeature(geometry, attributes);
  
  // 弃用的写法
  L.supermap.themeFeature(geometry, attributes);
  
</script>

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

new ThemeFeature(geometry, attributes);

leaflet/overlay/theme/ThemeFeature.js, line 10
Name Type Description
geometry L.Path | L.Point | L.LatLng

要素图形。

attributes Object

要素属性。

Extends

Methods

reverseLatLngs(latlngs)

leaflet/overlay/theme/ThemeFeature.js, line 55

坐标反转。

Name Type Description
latlngs L.LatLng

经纬度坐标。

toFeature(){FeatureVector}

leaflet/overlay/theme/ThemeFeature.js, line 28

转为内部矢量要素。

Returns:
Type Description
FeatureVector 内部矢量要素。