Class: unicodeMarker

L.supermap.unicodeMarker

The unicode marker layer.

L.supermap.unicodeMarker(latlng, options)

UnicodeMarker.js, line 4
Name Type Description
latlng L.LatLngBounds

The latitude and longitude coordinates.

options Object

Options of the unicode marker.

Name Type Default Description
label string

Unicode value of the marker.

labelRotation string '0' optional

The label rotation.

globalAlpha string '1' optional

The transparency of the unicode marker.

fontStyle string 'normal' optional

The font style.

fontWeight string 'normal' optional

The font weight.

fontSize string '1em' optional

The font size.

fontFamily string 'sans-serif' optional

The font family.

textAlign string 'center' optional

The alignment of marker content.

textBaseline string 'middle' optional

The base line used in the drawing marker.

Fires

Extends

Events

move

UnicodeMarker.js, line 51

Triggered after circle marker resetting the coordinates.

Properties:
Name Type Description
latlng L.LatLng

Current marker coordinates.

Methods

getLatLng(){L.LatLng}

UnicodeMarker.js, line 59

Get the marker coordinates.

Returns:
Type Description
L.LatLng Returns the current marker coordinates.

setLatLng(setLatLng)

UnicodeMarker.js, line 43

Set the marker new coordinates.

Name Type Description
setLatLng L.LatLng

The new coordinates that need to be set.