-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Marker clustering #307
Comments
In general, marker clustering is required when many markers are shown on the map to keep the map from being laggy (see also, e.g., #285) or even crashing. So we definitely cannot add an option to completely disable clustering. To further improve the performance (especially in terms of loading times), we sometimes perform the clustering on the server side if the data source (GoingElectric) supports it - in this case we don't have much control over the clustering algorithm except for one parameter ( Above a certain zoom level, or if the data source doesn't support server-side clustering (OpenChargeMap), we do switch to client-side clustering and would have a bit more control about the clustering algorithm and its parameters. So this case could definitely be optimized a bit more. But still, as I said, it's always a tradeoff and hard to get right for all cases... |
When creating the suggestion, I was aware of the fact that a "misuse" results in a laggy responsiveness. That's why my suggestion included the idea to solve this by defining a minimal amount of markers needed to be merged. Since this might be unclear, I try to explain: |
An option to force distinct markers for each charging location would be nice or an option to define the minimal amount of markers to be merged.
What I would like to achieve is to be able to screen the next possible charging locations on a long route. For example I am driving around 600-800km on a day (mainly highway), so I will have to charge 2 to 3 times. I'd like to filter for the stations I have a good tariff for (for example assume EnBW in Germany) and I am looking for reasonable stops on A3 from Passau to Frankfurt. Currently, this looks like this screenshot:
For example, I see 4 charging locations near Regensburg. When I zoom in, it seems as only one of those 4 charging locations is really located close to the A3:
If I zoom in even more, I can recognize, that there are 2 charging locations (instead of only 1) on the A3:
But this zoom-level is far to much detail to gain an overview for my route.
My typical use case is to search for the next reasonable charging location during my current charging, that's why it would be helpful to do this with this great app.
The text was updated successfully, but these errors were encountered: