<br><font size=2 face="sans-serif">I got this in the response </font><tt><font size=3><gml:Box
srsName="EPSG:900913"><br>
</font></tt><font size=2 face="sans-serif">which is the same as the map
projection.</font>
<br>
<br><font size=2 face="sans-serif">I forgot to say that even if the feature
is added to the vector layer I get this message in line 724 of OpenLayers.js</font>
<br><font size=3>xmldom.loadXML(text);return xmldom;}),this),function(){return
new DOMParser().parseFromString(text,'text/xml');},function(){var req=new
XMLHttpRequest();req.open("GET","data:"+"text/xml"+";charset=utf-8,"+encodeURIComponent(text),false);if(req.overrideMimeType){req.overrideMimeType("text/xml");}
</font>
<br>
<br><font size=2 face="sans-serif">I click on Continue button and then
the features are added.</font>
<br><font size=2 face="sans-serif">Steve</font>
<br><font size=2 face="sans-serif"><br>
</font><font size=3 color=#0066ff><i>Steve Toutant, M. Sc.</i></font><font size=3><br>
Analyste en géomatique<br>
Secteur environnement<br>
Direction des risques biologiques, environnementaux et occupationnels<br>
Institut national de santé publique du Québec<br>
945, avenue Wolfe<br>
Québec, Qc G1V 5B3 </font>
<p><font size=3>Tél.: (418) 650-5115 #5281<br>
Fax.: (418) 654-3144</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:steve.toutant@inspq.qc.ca><font size=3 color=blue><u>steve.toutant@inspq.qc.ca</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.inspq.qc.ca/><font size=3 color=blue><u>http://www.inspq.qc.ca</u></font></a>
<p><font size=3> </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>François Van Der Biest
<francois.vanderbiest@camptocamp.com>@openlayers.org</b> </font>
<br><font size=1 face="sans-serif">Envoyé par : users-bounces@openlayers.org</font>
<p><font size=1 face="sans-serif">04/09/2009 10:13 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">Steve.Toutant@inspq.qc.ca</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">users@openlayers.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [OpenLayers-Users] Highlight on
hover</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>Hi Steve.<br>
<br>
A potential reason is that the GML you're receiving does not use the<br>
same SRS as the one of your map.<br>
You may check this using FireBug.<br>
<br>
I know GeoServer does not handle reprojecting features returned by WMS<br>
getFeatureInfo.<br>
<br>
Cheers,<br>
F.<br>
<br>
<br>
On Fri, Sep 4, 2009 at 3:52 PM, <Steve.Toutant@inspq.qc.ca> wrote:<br>
><br>
> Hello,<br>
> With the code below, a GetFeatureInfo request is succesfully launched
to<br>
> mapserver when I stop moving the mouse. In firebug I see the XML response<br>
> with the msGMLOutput tag.<br>
> I can see that the highlightLayer has feature added to it but I don't
see<br>
> them on the map. Like there is no geometry.<br>
> What could be the reasons for that please? Is there some params missing?<br>
><br>
> Thanks<br>
> Steve<br>
><br>
> var highlight_style = { fillColor:'#99CCFF', strokeColor:'#3399FF',<br>
> fillOpacity:0.7 };<br>
> highlightLayer = new OpenLayers.Layer.Vector("HighlightedFeatures",<br>
> {displayInLayerSwitcher: false, features:[], isBaseLayer: false,<br>
> visibility:true, style:highlight_style});<br>
><br>
> infoControls =<br>
> {<br>
> hover:
new OpenLayers.Control.WMSGetFeatureInfo<br>
> ({<br>
> title: 'Identify
features by clicking',<br>
> layers: [overlays['national_2006']],<br>
> hover: true,<br>
> queryVisible:
true<br>
> ,infoFormat:'application/vnd.ogc.gml'<br>
> })<br>
> }<br>
> // add layers to the map<br>
> addLayersToMap();<br>
><br>
> for (var i in infoControls)<br>
> {<br>
> infoControls[i].events.register("getfeatureinfo",
this, showInfo);<br>
> map.addControl(infoControls[i]);<br>
> infoControls[i].activate();<br>
> }<br>
><br>
> function showInfo(evt)<br>
> {<br>
> if (evt.features && evt.features.length)<br>
> {<br>
> highlightLayer.destroyFeatures();<br>
> highlightLayer.addFeatures(evt.features);<br>
> highlightLayer.redraw();<br>
> }<br>
> }<br>
><br>
><br>
> Steve Toutant, M. Sc.<br>
> Analyste en géomatique<br>
> Secteur environnement<br>
> Direction des risques biologiques, environnementaux et occupationnels<br>
> Institut national de santé publique du Québec<br>
> 945, avenue Wolfe<br>
> Québec, Qc G1V 5B3<br>
><br>
> Tél.: (418) 650-5115 #5281<br>
> Fax.: (418) 654-3144<br>
> steve.toutant@inspq.qc.ca<br>
> http://www.inspq.qc.ca<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> Users@openlayers.org<br>
> http://openlayers.org/mailman/listinfo/users<br>
><br>
><br>
_______________________________________________<br>
Users mailing list<br>
Users@openlayers.org<br>
http://openlayers.org/mailman/listinfo/users<br>
</font></tt>
<br>
<br>
<br>