Replies: 1 comment 1 reply
-
Hello, there is already exists heatmap layer component. <vl-layer-heatmap weight="point_weight">
<vl-source-vector :features="points" />
</vl-layer-heatmap>
....
<script>
export default {
data () {
return {
points: [
{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [10, 10],
},
properties: {
point_weight: 0.5 // Weight values should range from 0 to 1 (and values outside will be clamped to that range).
},
},
...
],
}
},
}
</script> More about other options here https://openlayers.org/en/latest/apidoc/module-ol_layer_Heatmap-Heatmap.html |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Do you have any plan with heatmap layers?
Beta Was this translation helpful? Give feedback.
All reactions