<!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=370313418-01032011>Actually I modified the strategies to be -
</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=370313418-01032011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=370313418-01032011>
<P><FONT color=#0000ff size=2 face=Arial>strategies: [</FONT></P>
<P><FONT size=2><FONT color=#0000ff face=Arial>new</FONT><FONT color=#0000ff
face=Arial> OpenLayers.Strategy.Fixed(),</FONT></FONT></P>
<P><FONT size=2><FONT color=#0000ff face=Arial>new</FONT><FONT color=#0000ff
face=Arial> OpenLayers.Strategy.Cluster()</FONT></FONT></P>
<P><FONT color=#0000ff size=2 face=Arial>],</FONT></P>
<P><FONT color=#0000ff size=2 face=Arial></FONT> </P>
<P><SPAN class=370313418-01032011><FONT color=#0000ff size=2 face=Arial>Now I am
getting the points showing up but there is still quite a delay in loading /
zooming etc. Is there anyway I can optimize this further by limiting features
etc? </FONT></SPAN></P></SPAN></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </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>Andrew
Stewart<BR><B>Sent:</B> March 01, 2011 11:31 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>
<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> </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> </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> </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> //Hydrant<BR> var test_hydrants = new
OpenLayers.Layer.Vector("Hydrant", {<BR> </FONT></FONT></DIV>
<DIV dir=ltr align=left>
<P><FONT color=#0000ff size=2><FONT color=#0000ff
size=2> strategies: [new
OpenLayers.Strategy.Cluster()],</FONT></FONT></P>
<P><FONT color=#0000ff size=2><FONT color=#0000ff
size=2> protocol: new
OpenLayers.Protocol.WFS({<BR>
url: wfs,<BR>
featureType:
"Hydrants",<BR>
featureNS: "<A
href="http://www.intergraph.com/geomedia/gml">http://www.intergraph.com/geomedia/gml</A>",<BR>
featurePrefix:
"gmgml",<BR>
srsName:
"EPSG:3776",<BR>
//filter:
filter,<BR>
geometryName:
"Geometry",<BR>
version: "1.1.0"<BR>
})<BR>
});<BR> <BR> </FONT></FONT><FONT
color=#0000ff size=2><FONT color=#0000ff
size=2> //Add Vector Layers to
Map<BR>
map.addLayer(test_hydrants);</FONT></FONT></P></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV> </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. 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></P></DIV>
<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>