You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I want to express my appreciation for the outstanding work you’ve done with the ol-ext library. Your contributions to OpenLayers are invaluable, and the library’s suite of features greatly enhances the capabilities of OpenLayers with thoughtful and well-implemented extensions.
I am currently using the ol/source/IDW functionality in my project and would like to request a new feature: a built-in crop function. At present, the heatmap generated by ol/source/IDW covers the entire map, but my use case requires limiting the heatmap rendering to a specific area.
Requested Feature:
Crop/Clip Function: A method to specify a particular area where the heatmap should be rendered, effectively cropping or limiting the heatmap's display area.
Current Workaround:
To achieve similar functionality, I have implemented the following steps:
Create Buffers Around Points: Used Turf.js to generate buffers around the data points.
Union Buffers: Combined these buffers to create a unified polygonal area.
Apply Filter: Applied this polygon as a clipping mask to the heatmap layer using OpenLayers.
Visual Example:
To better illustrate the need for this feature, I have attached an image showing the heatmap with the current cropping method that I implemented. The image demonstrates how the heatmap is confined to a specific area, which is crucial for my project.
Adding a native crop functionality to ol/source/IDW would greatly streamline this process and enhance the flexibility of heatmap visualizations. It would be a fantastic addition to an already brilliant set of tools that ol-ext provides.
Thank you for considering this request and for your continued dedication to keeping the ol-ext project active and up-to-date.
The text was updated successfully, but these errors were encountered:
Thank you very much for the quick response, analysis, and implementation! The new maxD option to limit the computation to a specific distance is working very well.
I took the liberty of creating a setMaxD function to make adjusting the parameter easier, as shown below:
Hello @Viglino and the
ol-ext
Team,First, I want to express my appreciation for the outstanding work you’ve done with the
ol-ext
library. Your contributions to OpenLayers are invaluable, and the library’s suite of features greatly enhances the capabilities of OpenLayers with thoughtful and well-implemented extensions.I am currently using the
ol/source/IDW
functionality in my project and would like to request a new feature: a built-in crop function. At present, the heatmap generated byol/source/IDW
covers the entire map, but my use case requires limiting the heatmap rendering to a specific area.Requested Feature:
Current Workaround:
To achieve similar functionality, I have implemented the following steps:
Visual Example:
To better illustrate the need for this feature, I have attached an image showing the heatmap with the current cropping method that I implemented. The image demonstrates how the heatmap is confined to a specific area, which is crucial for my project.
Adding a native crop functionality to ol/source/IDW would greatly streamline this process and enhance the flexibility of heatmap visualizations. It would be a fantastic addition to an already brilliant set of tools that ol-ext provides.
Thank you for considering this request and for your continued dedication to keeping the ol-ext project active and up-to-date.
The text was updated successfully, but these errors were encountered: