markerFinalClickFunction on single marker
lmorroni opened this issue · comments
Hi,
With the latest version from master, I've started having an issue occur on markerFinalClickFunction with a single marker. It appears that the longitude and latitude are not getting passed or the ID is not being sent for lookup. When I click a cluster that is in the final marker stage, things behave normally. However, when I click it for a single marker, I get the following:
Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR) http://gouda:8080/anycluster/getClusterContent/13/256/?x=undefined&y=undefined&id=0
I've traced this down to getKmeansClusterEntries inside scripts.py but can't make much sense of the root cause. Any chance this is a new bug?
Thanks,
Larry
the bug was inside the new javascript as the marker did not include latitude and longitude. I uploaded a fix - but I am still working on the javascript to include OpenLayers. If you want to customize getClusterContent you can do so in views.py of anycluster (currently it is only returning ids). I still want to implement something that makes it easier to use a custom view for this so one does not have to modify anycluster to use it.