<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19019"></HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=925202918-01032011>So I am having success with point features below 100.. 
but is it also possible to use this with many point features (several 
thousand?)</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=925202918-01032011></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=925202918-01032011>My code below is trying to use the cluster strategy.. 
previously it was Fixed but that causes my map to freeze when loading the 
several thousand points. But when I switch to cluster nothing happens and no 
points appear, any advice on what I'm doing wrong? </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=925202918-01032011></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=925202918-01032011><FONT color=#0000ff size=2><FONT color=#0000ff 
size=2></FONT></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=925202918-01032011><FONT color=#0000ff size=2><FONT color=#0000ff 
size=2>&nbsp;//Hydrant<BR>&nbsp;&nbsp; var test_hydrants = new 
OpenLayers.Layer.Vector("Hydrant", {<BR>&nbsp;&nbsp;&nbsp;</FONT></FONT></DIV>
<DIV dir=ltr align=left>
<P><FONT color=#0000ff size=2><FONT color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strategies: [new 
OpenLayers.Strategy.Cluster()],</FONT></FONT></P>
<P><FONT color=#0000ff size=2><FONT color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protocol: new 
OpenLayers.Protocol.WFS({<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
url: wfs,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
featureType: 
"Hydrants",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
featureNS: "<A 
href="http://www.intergraph.com/geomedia/gml">http://www.intergraph.com/geomedia/gml</A>",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
featurePrefix: 
"gmgml",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
srsName: 
"EPSG:3776",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
//filter: 
filter,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
geometryName: 
"Geometry",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
version: "1.1.0"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
})<BR>&nbsp;&nbsp;&nbsp; 
});<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;</FONT></FONT><FONT 
color=#0000ff size=2><FONT color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Add Vector Layers to 
Map<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
map.addLayer(test_hydrants);</FONT></FONT></P></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> openlayers-users-bounces@lists.osgeo.org 
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Alexandre 
Dube<BR><B>Sent:</B> March 01, 2011 7:52 AM<BR><B>To:</B> 
openlayers-users@lists.osgeo.org<BR><B>Subject:</B> Re: [OpenLayers-Users] 
WMSGetFeatureInfo + xy mouse coordinates, can this be done?<BR></FONT><BR></DIV>
<DIV></DIV>50~ shouldn't be a problem.&nbsp; IMHO, it would be a good idea to 
make the switch to WFS.<BR><BR>Cheers,<BR><BR>Alexandre<BR><BR>On 11-03-01 09:39 
AM, Andrew Stewart wrote: 
<BLOCKQUOTE cite=mid:94816848A8EB3941B1E8592F425827A981E7FF07E0@chex2.crdnet.ca 
type="cite"><PRE wrap=""> 
Ok thanks.. So basically if my web service does not support tolerance (which I'm pretty sure is the case) then there is not much I can do with openlayers to fix this problem.. Besides possibly changing my features into markers from my WFS and giving those markers tooltips/hotspots but not sure what the performance would be on that since I need sometimes 50+ markers.


-----Original Message-----
From: <A class=moz-txt-link-abbreviated href="mailto:openlayers-users-bounces@lists.osgeo.org">openlayers-users-bounces@lists.osgeo.org</A> [<A class=moz-txt-link-freetext href="mailto:openlayers-users-bounces@lists.osgeo.org">mailto:openlayers-users-bounces@lists.osgeo.org</A>] On Behalf Of Alexandre Dube
Sent: March 01, 2011 6:49 AM
To: <A class=moz-txt-link-abbreviated href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</A>
Subject: Re: [OpenLayers-Users] WMSGetFeatureInfo + xy mouse coordinates, can this be done?

Hi,

That could be setup in your web mapping service. If you use MapServer, 
you could set the Layer object definition "TOLERANCE" parameter for that.

Regards,

Alexandre

[1] <A class=moz-txt-link-freetext href="http://mapserver.org/mapfile/layer.html">http://mapserver.org/mapfile/layer.html</A> (search for "TOLERANCE")


On 11-02-28 10:02 PM, Planet)x wrote:
</PRE>
  <BLOCKQUOTE type="cite"><PRE wrap="">I have a slight problem which has to do with my WMS mainly but wondering if
there is a way to program around it. Well problem is I can increase the
symbol size for points on my Web service but the geometry of the point
(centroid) remains the same. Therefore when using a
OpenLayers.Control.WMSGetFeatureInfo the feature info is never returned
until I move the mouse directly in the middle of the point feature (and also
lines unfortunately). Question is can I somehow force the mouse to be moved
to the center of the point when it nears a symbol.. and is there anyway to
actually get the entire coordinates for the symbol so I can use them to do
the featureinfo somehow? Not sure if this makes sense or if there is another
approach I can utilize to do this.. appreciate any advice!

</PRE></BLOCKQUOTE><PRE wrap="">
</PRE><PRE wrap=""><FIELDSET class=mimeAttachmentHeader></FIELDSET>
_______________________________________________
Users mailing list
<A class=moz-txt-link-abbreviated href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</A>
<A class=moz-txt-link-freetext href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</A>
</PRE></BLOCKQUOTE><BR><BR><PRE class=moz-signature cols="72">-- 
Alexandre DubĂ©
Mapgears
<A class=moz-txt-link-abbreviated href="http://www.mapgears.com">www.mapgears.com</A>
</PRE>
<DIV>
<P>
<HR>
[This message has been scanned for security content threats and 
viruses.]<BR><BR>[The City of Red Deer I.T. Services asks that you please 
consider the environment before printing this e-mail.]<BR>
<P></P></DIV>
<DIV><P><HR>
This e-mail is intended for the original recipient(s) only. If you have received it in error, please advise the sender and delete this message.
</P></DIV>
</BODY></HTML>