> -Is there any way to make the points plotted by a WMS clickable? In
> our current app our points open popups when clicked, and we'd like to
> replicate that.
>
That is what I mean by using WFS to query. When you click, you do say a
dwithin or bbox search.
Eg setup the wfsprotocol (I associate with a layer)
wfsProtocol = new OpenLayers.Protocol.WFS.v1_1_0({
url: mylayerURL,
geometryName: "SHAPE",
featurePrefix: mylayerprefex,
featureType: mylayerFeaturetype,
srsName: mySRS
});
Then for the event handler, add.
wfsProtocol.read({
filter: new OpenLayers.Filter.Spatial({
type: OpenLayers.Filter.Spatial.DWITHIN,
distance: dist,
distanceUnits: "meters",
value: e.feature.geometry
}),
callback: processSpatialQuery,
scope: strategy
});
This should be discussed on Openlayers list however. Be careful with
DWITHIN in Geoserver - it doesnt respect units (except to complain if
they are not standard), nor does it respect SRS, (Mapserver does), so
make sure what is passed to DWITHIN is terms of native SRS and units.
Notice: This email and any attachments are confidential. If received in error
please destroy and immediately notify us. Do not copy or disclose the contents.
------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users