File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
components/overlays/heatmap Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ export default defineComponent({
195
195
}
196
196
}
197
197
198
- const heatmapInstance = h337 . create ( options . value )
198
+ const heatmapInstance = h337 . create ( options . value as unknown as h337 . HeatmapConfiguration )
199
199
container . children [ 0 ] . setAttribute ( 'id' , id + '-hm' )
200
200
if ( Array . isArray ( props . data ) ) {
201
201
setData ( props . data , heatmapInstance )
Original file line number Diff line number Diff line change @@ -141,15 +141,11 @@ interface NavigationOption {
141
141
distanceLegendOptions ?: AnyObject | boolean
142
142
}
143
143
144
- interface HeatmapConfiguration extends h337 . HeatmapConfiguration {
145
- useEntitiesIfAvailable ?: boolean
146
- minCanvasSize : number
147
- maxCanvasSize : number
148
- radiusFactor : number
149
- spacingFactor : number
150
- maxOpacity : number
151
- minOpacity : number
152
- container : HTMLElement
144
+ type HeatmapConfiguration = Partial < h337 . HeatmapConfiguration > & {
145
+ minCanvasSize ?: number
146
+ maxCanvasSize ?: number
147
+ radiusFactor ?: number
148
+ spacingFactor ?: number
153
149
}
154
150
155
151
interface DynamicOverlayOpts extends Cesium . Entity {
You can’t perform that action at this time.
0 commit comments