Closed (fixed)
Project:
Openlayers
Version:
7.x-2.0-beta1
Component:
OL API
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2012 at 17:30 UTC
Updated:
24 May 2012 at 13:50 UTC
Hello,
I have around 5000 markers on my OS map. I have used clustering to improve the rendering performance and it all works ok, that is until I start zooming. What could be the case? Does my map start rendering markers that are not visible on the region I am viewing? If this is the case, is there a way to restrict showing markers to the visible box of my map?
Comments
Comment #1
zzolo commentedHi @gc23. The issue is that you just have too many features. 5000 is a lot, and probably doesn't work in IE at all.
Unfortunately there is no built in support for showing only specific items on bounding box with this module, though there is though into it utilizing JSON. I really want to integrate all this with the Views JSON module.
Comment #2
ressaHey zzolo. Do you know if Gmap supports showing only specific items on bounding box, using a filter or an argument, so that only markers are loaded for the visible part of the map?
I would very much prefer to use Openlayers, but I need this functionality for a future project.
Comment #3
zzolo commentedHey @ressa. Not that I am aware of. But this functionality is hopefully going into http://drupal.org/project/views_geojson
See #1333324: Bounding Box filtering
Comment #4
ressaHi @zzolo. Fantastic! It's great to see that dynamic Bounding Box filtering, depending on the visible part of the map, is on the way for Openlayers. I will grab the release and test it as soon as you guys decide whether to put it into Openlayers or Views GeoJSON.
Comment #5
zzolo commentedJust an update. The code is in this module at the moment, and Views GeoJSON is close to supporting it.
Comment #6
dasjojust wanted to note that i got this working with both recent dev versions of views_geojson 7.x-1.x + openlayers 7.x-2.x
thanks for the great work here!
note, the "Map Data Sources" views setting should be geofield and not WKT, otherwise it didn't work for me.
a related thought: #1516610: Paging with views_geojson
Comment #7
jeffschuler@ressa: Bounding Box support is now in Views GeoJSON: #1333324: Bounding Box filtering.
Closing this issue...
Comment #8
ressa@jeffschuler, thank you, that is great!