I built a map made of several layers. I need to display the layers features fields at the place where the user clicks (see the controler code hereafter). The layers are correctly displayed and go across the dateline. If the user click on a feature, its fields values are written in a div. However, if I click on a feature beyond the dateline, my controler returns nothing. How can I force it (or force geoserver?) to consider clicks beyond the dateline?

var options = {minResolution:minResolution, maxResolution:maxResolution,
        controls:[new OpenLayers.Control.PanZoom(), new OpenLayers.Control.NavToolbar(), layersSwitcher, graticule]};
var map = new OpenLayers.Map("map-id", options);

var map = new OpenLayers.Map("map-id", options);

var infoGnrl = new OpenLayers.Control.WMSGetFeatureInfo({
               title:'identify feature by clicking',
               output:'features', infoFormat:'application/vnd.ogc.gml',
               format: new OpenLayers.Format.GML,
               eventListeners: {
                getfeatureinfo: function(event) {
                    if (typeof(event.features[0])=='undefined'){document.getElementById('infoGeneral').innerHTML=' '; return};
                    for (ii=0; ii< event.features.length; ii++){
                        if (typeof(thisEEZNAME)!='undefined') {if (eezName=='') {eezName=thisEEZNAME} else {eezName+=', '+thisEEZNAME}};
                        if (typeof(thisLMENAME)!='undefined') {if (eezName=='') {eezName=thisEEZNAME} else {lmeName+=', '+thisLMENAME}};
  • I'm having a similar issue with bounding boxes that extend past the international dateline.
    – gnarbarian
    Feb 19, 2016 at 22:24


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.