Thanks Toby, that makes sense, I'll give it a try (this is all rather new to me so I'm learning as I go!)<br><br>The
second point you mention is exactly right, and one of the reasons I
want to do this. It's quite common for Flickr users to just drag a whole
batch of images onto one location and hence they all get the same
geotags and never de-cluster. Currently the logic in my code says if
there are less than 20 placemarks show a list of all the images, but if
there are more than 20 then zoom in (in the hope they will split), but
if you get to level 18 and there are still more than 20 then display
them all anyway.<br><br>James<br><br><div class="gmail_quote">On Fri, Oct 5, 2012 at 11:10 AM, Tobias Reinicke <span dir="ltr"><<a href="mailto:ramotswa@gmail.com" target="_blank">ramotswa@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If your cluster popup already shows the list of features, then you could build a link for each feature that, when clicked you just call map.zoomToExtent(feature.bounds); and then to open the popup either fake a clickevent on it or initiate the popup by calling function onFeatureSelect(feature) with the feature passed in.<div>
<br></div><div>Just a note, a bit like on that example there, if you have enough features (> your cluster threshold) on exactly the same coordinate you will never get rid of the clustered icon thing. But using the theory above you should still manage to display the individual popup.</div>
<div><br></div><div>Toby<br><br><div class="gmail_quote"><div><div class="h5">On 5 October 2012 00:52, James Morley <span dir="ltr"><<a href="mailto:james@jamesmorley.net" target="_blank">james@jamesmorley.net</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
I have a map where cluster popups display a list of features. I want each of these to have a 'display' / 'zoom to' link within the popup that takes users directly to the popup as if they accessed it by manually zooming in until the cluster disappeared.<br>
<br>Hope that makes sense! You can see the type of map I'm talking about at <a href="http://www.whatsthatpicture.com/flickr/commons-osmtest-v3.5.htm" target="_blank">http://www.whatsthatpicture.com/flickr/commons-osmtest-v3.5.htm</a><br>
<br>Does anyone have any examples of this in action? Or any tips how it might work?<br><br>Thanks<span><font color="#888888"><br clear="all"><br>-- <br>---<br>James Morley<br><a href="http://www.jamesmorley.net" target="_blank">www.jamesmorley.net</a> / @jamesinealing<br>
<a href="http://www.whatsthatpicture.com" target="_blank">www.whatsthatpicture.com</a> / @PhotosOfThePast<br><a href="http://www.apennypermile.com" target="_blank">www.apennypermile.com</a><br>
</font></span><br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br>---<br>James Morley<br><a href="http://www.jamesmorley.net" target="_blank">www.jamesmorley.net</a> / @jamesinealing<br><a href="http://www.whatsthatpicture.com" target="_blank">www.whatsthatpicture.com</a> / @PhotosOfThePast<br>
<a href="http://www.apennypermile.com" target="_blank">www.apennypermile.com</a><br>