Can the problem is with the position of the map div?<br><br>I think that is.<br><br><div class="gmail_quote">2009/9/3 Micho Gar <span dir="ltr"><<a href="mailto:michogar@gmail.com">michogar@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Very strange.<br><br>I have been investigating in the OpenLayers code and I have seen that the wms petition for the same point generate two diferent url. For FireFox respond with data and for IExplorer 7 not. The unique diference between both is the bbox. I dont understand anything.<br>
<br>FF: <a href="http://192.168.11.159:8090/geoserver/wms?service=WMS&version=1.1.0&request=GetFeatureInfo&layers=osmius%3Ausuarios_instancias,osmius%3Ausuarios_servicios&query_layers=osmius%3Ausuarios_instancias,osmius%3Ausuarios_servicios&styles=,&bbox=-403214.87876%2C4928941.444487%2C-393278.065085%2C4934387.582751&srs=EPSG%3A900913&feature_count=10&x=520&y=283&height=570&width=1040&info_format=application%2Fvnd.ogc.gml&cql_filter=IDN_USER%3D%27ROOT" target="_blank">http://192.168.11.159:8090/geoserver/wms?service=WMS&version=1.1.0&request=GetFeatureInfo&layers=osmius%3Ausuarios_instancias,osmius%3Ausuarios_servicios&query_layers=osmius%3Ausuarios_instancias,osmius%3Ausuarios_servicios&styles=,&bbox=-403214.87876%2C4928941.444487%2C-393278.065085%2C4934387.582751&srs=EPSG%3A900913&feature_count=10&x=520&y=283&height=570&width=1040&info_format=application%2Fvnd.ogc.gml&cql_filter=IDN_USER%3D'ROOT</a>'<br>
IE: <a href="http://192.168.11.159:8090/geoserver/wms?service=WMS&version=1.1.0&request=GetFeatureInfo&layers=osmius%3Ausuarios_instancias,osmius%3Ausuarios_servicios&query_layers=osmius%3Ausuarios_instancias,osmius%3Ausuarios_servicios&styles=,&bbox=-403195.769503%2C4928941.444487%2C-393297.174342%2C4934387.582751&srs=EPSG%3A900913&feature_count=10&x=504&y=283&height=570&width=1036&info_format=application%2Fvnd.ogc.gml&cql_filter=IDN_USER%3D%27ROOT" target="_blank">http://192.168.11.159:8090/geoserver/wms?service=WMS&version=1.1.0&request=GetFeatureInfo&layers=osmius%3Ausuarios_instancias,osmius%3Ausuarios_servicios&query_layers=osmius%3Ausuarios_instancias,osmius%3Ausuarios_servicios&styles=,&bbox=-403195.769503%2C4928941.444487%2C-393297.174342%2C4934387.582751&srs=EPSG%3A900913&feature_count=10&x=504&y=283&height=570&width=1036&info_format=application%2Fvnd.ogc.gml&cql_filter=IDN_USER%3D'ROOT</a>'<br clear="all">
<br><br><br><br><br><div class="gmail_quote">2009/9/3 Micho Gar <span dir="ltr"><<a href="mailto:michogar@gmail.com" target="_blank">michogar@gmail.com</a>></span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Here the control creation and activation in the init<br><br>...<br> infoControls = {<br> clickInstance: new OpenLayers.Control.WMSGetFeatureInfo({<br> url: context + '/geoserver/wms', <br>
title: 'Identifica las features por click',<br> infoFormat: 'application/vnd.ogc.gml',<br> layers: [Instancias,Servicios],<br> queryVisible: true,<br>
vendorParams:{ cql_filter: "IDN_USER='" + user + "'"}<br> })<br> };<br><br> map.addLayers([Instancias,Servicios,MapnikLayer,OSMLayer]);<br> <br> infoControls['clickInstance'].events.register("getfeatureinfo", this, getObject);<br>
map.addControl(infoControls['clickInstance']);<br> infoControls['clickInstance'].activate();<br><br> map.addControl(new OpenLayers.Control.Navigation());<br> map.addControl(new OpenLayers.Control.PanPanel());<br>
map.addControl(new OpenLayers.Control.ZoomPanel());<br> var layerSwitcher = new OpenLayers.Control.LayerSwitcher();<br> layerSwitcher.activeColor='#E3F6CE';<br> map.addControl(layerSwitcher);<br> map.addControl(new OpenLayers.Control.Scale);<br>
map.addControl(new OpenLayers.Control.MousePosition);<br><br>...<br><br>and here the method is execute by control<br><br>function getObject(evt){<br> /*<br> * <br> */<br><br> g = new OpenLayers.Format.WMSGetFeatureInfo();<br>
var features = g.read(evt.text); <br> if (features.length==0) return;<br> <br> if (features.length>1){<br> if (repeats(features)==false){<br> alert(msgOverObject);<br> return;<br>
}<br> }<br><br> var idFeature=features[0].attributes['IDN_INSTANCE'];<br> if (idFeature!=null){<br> xyInfo = evt.xy;<br> idObject=idFeature;<br> <br> var _url = context + "/geoserver/wfs?VERSION=1.1.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=instancias_informacion&Filter=<Filter><PropertyIsEqualTo><PropertyName>IDN_INSTANCE</PropertyName><Literal>" + idFeature + "</Literal></PropertyIsEqualTo></Filter>"; <br>
OpenLayers.loadURL(_url, "", null, showInstanceInfo, isError);<br> }else{<br> var idService=features[0].attributes['IDN_SERVICE'];<br> xyInfo= (new OpenLayers.LonLat(features[0].geometry.x,features[0].geometry.y)).transform(proj4326,proj900913);<br>
idObject=idService;<br> <br> var _url = context + "/geoserver/wfs?VERSION=1.1.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=usuarios_instancias&Filter=<Filter><And><PropertyIsEqualTo><PropertyName>IDN_SERVICE</PropertyName><Literal>" + idService + "</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>IDN_USER</PropertyName><Literal>" + user + "</Literal></PropertyIsEqualTo></And></Filter>"; <br>
OpenLayers.loadURL(_url, "", null, showServiceInstance, isError);<br><br> }<br><br>}<br><br>the evt param in the getObject method is empty in IE.<br><br><br>Thanks to all.<br><br><br><div class="gmail_quote">
2009/9/2 Eric Lemoine <span dir="ltr"><<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a>></span><div><div></div><div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>On Wed, Sep 2, 2009 at 7:13 PM, Micho Gar<<a href="mailto:michogar@gmail.com" target="_blank">michogar@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I have a code to realise a GetFeatureInfo and runs well on Firefox but not<br>
> return any result in IE. Reading the documentation I have not seen nothing<br>
> about this. I think it work the same for both.<br>
><br>
> Something about this??<br>
<br>
</div>Some code to show the list?<br>
<br>
<br>
--<br>
Eric Lemoine<br>
<br>
Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>
73377 Le Bourget du Lac, Cedex<br>
<br>
Tel : 00 33 4 79 44 44 96<br>
Mail : <a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
</blockquote></div></div></div><br><br clear="all"><div><div></div><div><br>-- <br># michogar<br># Analista Programador SIG<br># GNU/Linux Counter 462666<br># <a href="http://www.openstreetmap.org/user/michogar" target="_blank">http://www.openstreetmap.org/user/michogar</a><br>
<br>Una visión personal:<br><a href="http://michogar.wordpress.com" target="_blank">http://michogar.wordpress.com</a><br><br>El día a día: <br><a href="http://twitter.com/michogar" target="_blank">http://twitter.com/michogar</a><br>
<br><br><br>
</div></div></blockquote></div></div></div><div><div></div><div class="h5"><br><br clear="all"><br>-- <br># michogar<br># Analista Programador SIG<br># GNU/Linux Counter 462666<br># <a href="http://www.openstreetmap.org/user/michogar" target="_blank">http://www.openstreetmap.org/user/michogar</a><br>
<br>Una visión personal:<br><a href="http://michogar.wordpress.com" target="_blank">http://michogar.wordpress.com</a><br><br>El día a día: <br><a href="http://twitter.com/michogar" target="_blank">http://twitter.com/michogar</a><br>
<br><br><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br># michogar<br># Analista Programador SIG<br># GNU/Linux Counter 462666<br># <a href="http://www.openstreetmap.org/user/michogar">http://www.openstreetmap.org/user/michogar</a><br>
<br>Una visión personal:<br><a href="http://michogar.wordpress.com">http://michogar.wordpress.com</a><br><br>El día a día: <br><a href="http://twitter.com/michogar">http://twitter.com/michogar</a><br><br><br><br>