[OpenLayers-Users] Re: clustering strategy problem in 900913 projection

AlexR alexrushforth at hotmail.com
Wed Apr 27 09:29:46 EDT 2011


Many thanks for your reply Steve

I've tried changing the distance and threshold values and i don't think that
is the problem. The same thing happens if I modify the code on the
Openlayers cluster example (full code below). As soon as I add projection
options the clustering stops working! not sure if this is a bug with OL or a
problem in my code??

can anyone see a problem here?




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <meta name="viewport" content="width=device-width; initial-scale=1.0;
maximum-scale=1.0; user-scalable=0;" /> 
    <meta name="apple-mobile-web-app-capable" content="yes" /> 
        <title>OpenLayers Cluster Strategy Threshold</title>
         
        <link rel="stylesheet"
href="http://openlayers.org/dev/theme/default/style.css" type="text/css" /> 
        <link rel="stylesheet"
href="http://openlayers.org/dev/examples/style.css" type="text/css" /> 
         
         
         
    </head> 
    <body onload="init()"> 
        
Cluster Strategy Threshold
 
        <div id="tags"> 
            vector, feature, stylemap, wfs, cluster, strategy, cleanup
        </div>         
        <p id="shortdesc"> 
            Demonstrates the use of the cluster strategy threshold property.
        </p> 
        <div id="map" class="smallmap"></div> 
        <br /> 
        <p>Cluster details: hover over a feature to see details.</p> 
        <ul> 
            <li> 
                <input id="distance" name="distance" type="text" value=""
size="3" /> 
                <label for="distance">distance</label> 
            </li> 
            <li> 
                <input id="threshold" name="threshold" type="text" value=""
size="3" /> 
                <label for="threshold">threshold</label> 
            </li> 
        </ul> 
        <button id="reset">recluster</button> 
    </body> 
</html>



--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/clustering-strategy-problem-in-900913-projection-tp6280745p6309471.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list