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

zzolo’s picture

Priority: Major » Normal

Hi @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.

ressa’s picture

Hey 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.

zzolo’s picture

Hey @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

ressa’s picture

Hi @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.

zzolo’s picture

Title: Markers on Visible Map » Bounding Box strategy and the Views GeoJSON module
Category: support » feature

Just an update. The code is in this module at the moment, and Views GeoJSON is close to supporting it.

dasjo’s picture

just 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

jeffschuler’s picture

Status: Active » Fixed

@ressa: Bounding Box support is now in Views GeoJSON: #1333324: Bounding Box filtering.
Closing this issue...

ressa’s picture

@jeffschuler, thank you, that is great!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.