new ol.source.Unique(name, opt_options)
Unique.js, line 5
Name | Type | Default | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name |
string |
The unique theme layer name. |
|||||||||||||||||||||||||||||||||
opt_options |
Object |
parameters.
|
|||||||||||||||||||||||||||||||||
opt_option.state |
ol.source.State |
optional
Resource status. |
|||||||||||||||||||||||||||||||||
opt_options.themeField |
string |
Specifies to create a thematic map field. |
|||||||||||||||||||||||||||||||||
opt_options.style |
Object |
optional
Thematic map style. |
|||||||||||||||||||||||||||||||||
opt_options.styleGroups |
Object |
optional
Each theme type style group. |
|||||||||||||||||||||||||||||||||
opt_options.isHoverAble |
boolean | false |
optional
Whether to enable the hover event. |
||||||||||||||||||||||||||||||||
opt_options.highlightStyle |
Object |
optional
The style style that is triggered after the hover event is turned on. |
|||||||||||||||||||||||||||||||||
opt_option.attributions |
string | Object | 'Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a></span>' |
optional
Copyright information. |
Extends
- GeoFeature
Methods
-
destroy()
Unique.js, line 38 -
Disposes the resource. The property that references resource is set to null.