Class: UnicodeMarker

UnicodeMarker

Unicode 字符图标类。Unicode 是由 Unicode 联盟维护的文本编码标准,它定义了许多常见字符,包括数字、标点符号和其他符号。

new UnicodeMarker(latlng, options)

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

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

new UnicodeMarker(latlng, options);

leaflet/overlay/UnicodeMarker.js, line 7
Name Type Description
latlng L.LatLngBounds

经纬度坐标。

options Object

参数。

Name Type Default Description
label string

符号 Unicode 值。

labelRotation string '0' 可选

符号旋转角度。

globalAlpha string '1' 可选

符号的不透明度。

fontStyle string 'normal' 可选

符号的风格。

fontWeight string 'normal' 可选

符号的粗细。

fontSize string '1em' 可选

符号的尺寸。

fontFamily string 'sans-serif' 可选

符号的字体。

textAlign string 'center' 可选

符号内容的对齐方式。

textBaseline string 'middle' 可选

绘制符号时使用的基线。

Fires

Extends

Events

move

leaflet/overlay/UnicodeMarker.js, line 57

circle marker 重设坐标之后触发。

Properties:
Name Type Description
latlng L.LatLng

当前 marker 坐标。

Methods

getLatLng(){L.LatLng}

leaflet/overlay/UnicodeMarker.js, line 65

获取 marker 坐标。

Returns:
Type Description
L.LatLng 返回当前 marker 坐标。

setLatLng(setLatLng)

leaflet/overlay/UnicodeMarker.js, line 49

设置 marker 新坐标。

Name Type Description
setLatLng L.LatLng

需要设置的新坐标。