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 内部矢量要素。