openlayers-3 Firefox 37.0.1 versus 37.0.2 mapserver rendering bug? -
i think upgrading firefox 37.0.1 37.0.2 in win7 64 has revealed bug either in code or ol3 code. 2 of layers no longer displayed in correct position. 2 layers incorrect both using url indicates arcgis rest services , ends mapserver. no other layers using sources similar these 2 problems:
http://gis.ncdc.noaa.gov/arcgis/rest/services/nidis/usdroughtoutlook/mapserver http://apps.fs.fed.us/arcx/rest/services/edw/edw_watersheds_01/mapserver
details:
i displaying multiple layers multiple sources in openlayers3 map. displaying using firefox 37.0.1 running in windows 7, 64 bit. without change javascript code, 2 of layers no longer display properly. offset south , east relative used display correctly. example, southern tip of florida in 2 layers on top of cuba. difference know made firefox updated 37.0.2.
testing results tested prior versions of code correct in 37.0.1, display incorrectly on 37.0.2.
i tested on windows 7, 64 machine 37.0.1 , current code displays correct results.
i tested on both windows 7 machines using chrome , layers displayed correctly.
i tested using internet explorer 11.0.9600.17691 product update version 11.0.17 , layers not display correctly.
i conclude firefox update responsible display errors. however, cannot tell if problem firefox or ol3 code.
code excerpts: have included code creates layers not working. have skipped of code since works other layers , chrome. have added additional parameters (layercaption, layercode, showmenu) facilitate other processing. each layer pushed onto array (mylayers) used define map. ol library referenced as:
http://openlayers.org/en/v3.3.0/build/ol.js" type="text/javascript
javascript
var huc = new ol.layer.tile({ title: 'watersheds', layercaption: 'watersheds', layercode: 'huc', showmenu: true, source: new ol.source.tilearcgisrest({ url: 'http://apps.fs.fed.us/arcx/rest/services/edw/edw_watersheds_01/mapserver', params: { 'layers': 0, // 0 huc-2... 5 huc-12 'bbox': '-126.0 24.5 -65.0 51.0', 'transparent': 'false', 'f': 'image' }, attributions: [new ol.attribution({ html: 'hydrologic unit boundaries, forest service enterprise map services program' })] }), visible: false, opacity: 0.70 });
the second layer is:
var ncdcdrought = new ol.layer.tile({ title: 'noaa national climatic data cecnter drought forecast', layercaption: 'drought forecast', layercode: 'ncdcdrought', showmenu: true, source: new ol.source.tilearcgisrest({ url: 'http://gis.ncdc.noaa.gov/arcgis/rest/services/nidis/usdroughtoutlook/mapserver', params: { 'layers': '0', 'bbox': '-126.0 24.5 -65.0 51.0', 'bboxsr': '4326', 'imagesr': '4019', 'transparent': 'false', 'f': 'image' } }), visible: false, opacity: 0.70 }); mylayers.push(ncdcdrought);
code map creation:
var view = new ol.view({ //center: ol.proj.transform([37.41, 8.82], 'epsg:4326', 'epsg:3857'), projection: 'epsg:4326', center: [-90, 40], zoom: 4 }); var map = new ol.map({ controls: ol.control.defaults().extend([ new ol.control.scaleline({ units: 'us' }) ]), target: 'map', layers: mylayers, view: view });
i have tried provide relevant details. can supply more information if not sufficient.
thank you.
jeff
Comments
Post a Comment