File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
/* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
2
2
* This program are made available under the terms of the Apache License, Version 2.0
3
3
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
4
+ import '@supermap/iclient-common/css/webmapfont/iconfont.css'
4
5
import '@supermap/iclient-common/css' ;
5
- import './ChangeTileVersion.css' ;
6
+ import './ChangeTileVersion.css' ;
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import Attributions from '../core/Attributions'
29
29
* @param {number } [options.radius=50] - 热点渲染的最大半径(热点像素半径),单位为 px,当 useGeoUnit 参数 为 true 时,单位使用当前图层地理坐标单位。热点显示的时候以精确点为中心点开始往四周辐射衰减,其衰减半径和权重值成比列。
30
30
* @param {number } [options.opacity=1] - 图层透明度。
31
31
* @param {boolean } [options.useGeoUnit=false] - 使用地理单位,即默认热点半径默认使用像素单位。 当设置为 true 时,热点半径和图层地理坐标保持一致。
32
+ * @param {boolean } [options.blur] - 模糊量,默认值为半径的二分之一。
32
33
* @param {string } [options.attribution='Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' title='SuperMap iServer' target='_blank'>SuperMap iServer</a></span>'] - 版权信息。
33
34
*
34
35
* @extends {L.Layer }
@@ -78,6 +79,7 @@ export var HeatMapLayer = L.Layer.extend({
78
79
this . useGeoUnit = this . options . useGeoUnit ;
79
80
this . opacity = this . options . opacity ;
80
81
this . radius = this . options . radius ;
82
+ this . blur = this . options . blur ;
81
83
this . movingOffset = [ 0 , 0 ] ;
82
84
} ,
83
85
@@ -295,7 +297,7 @@ export var HeatMapLayer = L.Layer.extend({
295
297
* @private
296
298
*/
297
299
drawCircle : function ( r ) {
298
- var blur = r / 2 ;
300
+ var blur = this . blur || r / 2 ;
299
301
300
302
var circle = this . circle = document . createElement ( 'canvas' ) ,
301
303
ctx = circle . getContext ( "2d" ) ;
You can’t perform that action at this time.
0 commit comments