[OpenLayers-Users] Using Point features with WMSGetFeature Info
Hover, can I improve the accuracy of mouse position?
Planet)x
andrew.stewart at reddeer.ca
Tue Feb 15 10:58:31 EST 2011
I am having an issue using WMS point features and getting an accurate mouse
hover so that a WMSGetfeature call is given and a tooltip is shown when the
mouse is hovered over the point. We are using symbol files through our WMS
Service but previously they were rendered in SVG and were much
smoother/easier to mouseover for information. However when I use the same
symbols with the WMS service and then create WMS layers with openlayers the
point features do not look very good symbol wise and it is hard to get the
mouse in the right spot. My question is I have seen examples of using
Openlayer's SVG symbols to render vector data such as
http://dev.openlayers.org/sandbox/camptocamp/vectorSymbols/examples/vector-symbols.html
Now can I do this and add vector symbols/layers but point to my existing WMS
layer? Im not sure if this makes sense but can symbolizers be used for WMS
layers or just vector.. and if so can I create vector layers from existing
WMS layers?
Here is an example of my layer for one "tooltip" declared which is a point
feature.
//Attraction
var layer_Attraction_Tooltip = new OpenLayers.Layer.WMS("Attraction
Tooltip", "http://localhost/WebServices/Request.aspx",
{
layers: ['Attraction'],
VERSION: "1.1.1",
transparent: true
},
{ isBaseLayer: false,
singleTile: true,
visibility: false,
buffer: 1,
ratio: 1
}
);
And my WMS get feature control
//Attraction Tooltip
info_aoi_attraction = new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://localhost/WebServices/Request.aspx',
queryVisible: false,
layers: [layer_Attraction_Tooltip],
maxFeatures: 1,
hover:true,
id: 'aoi_attraction',
infoFormat: 'text/html'
});
info_aoi_attraction.handler.delay = 25;
tooltip_array.push(info_aoi_attraction);
If I cannot use vector symbols for my existing WMS layers can I modify the
WMSGetFeatureInfo control so it is somehow easier to mouseover point
features like the one above>? Appreciate any advice.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Using-Point-features-with-WMSGetFeature-Info-Hover-can-I-improve-the-accuracy-of-mouse-position-tp6028075p6028075.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list