Reference Source
public class | source

Icon

Extends:

L~L.DivIcon → Icon

The icon for creating marks

Example:

var myIcon = new KQ.Struct.DivIcon({
className: 'leaflet-icon',
iconSize: [120, 120],
html: '<div id="marker' + 100 + '" style="width: 160px; height: 160px; position: relative; background-color: transparent;">ASD</div>'
});

Constructor Summary

Public Constructor
public

constructor(options: Object)

构造函数

Public Constructors

public constructor(options: Object) source

构造函数

Params:

NameTypeAttributeDescription
options Object

设置参数

options.html String

HTML内容

options.iconSize Point

图标的尺寸