I have done some debugging, On firefox/firefbug the OSM data is not loaded, first the osm files are attempted with the result of 206 partial content :
GET http://xhema.flossk.org:8080/mapdata/03/MapAction/tpginc/out_LL_Rivers/ways_02000.osm 206 Partial Content XMLHttpRequest.js (line 200) Then something tries to load the url without the ".osm" extension and fails : http://xhema.flossk.org:8080/mapdata/03/MapAction/tpginc/out_LL_Rivers/ways_20000 404 Not Found 1.61s XMLHttpRequest.js (line 200) on chrome, the resource is not loaded and there is no error : Request URL: http://xhema.flossk.org:8080/mapdata/03/MapAction/tpginc/out_LL_Rivers/ways_02000.osm Request Headers Origin: http://xhema.flossk.org:5000 Referer: http://xhema.flossk.org:5000/osmdetail.html User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.3 (KHTML, like Gecko) Chrome/5.0.356.2 Safari/533.3 The code goes into the aborted branch : if (this._aborted) return; I am working on more debugging, Thanks, mike 2010/4/22 Takeo Shibata <takeofut...@hotmail.com> > > Hi > I just create simple map using an image from WMS and > Vectors from OSM file link. > http://xhema.flossk.org:5000/osmdetail.html > > By IE 8, I can see that line features created by > OpenLayers.Layer.Vector. > > However, by Firefox, > I cannot see. > And looks like it requests the file without extension > http://xhema.flossk.org:8080/mapdata/03/MapAction/tpginc/out_LL_Rivers/ways_02000 > instead of > http://xhema.flossk.org:8080/mapdata/03/MapAction/tpginc/out_LL_Rivers/ways_02000.osm > > I am not sure why, is this bug, is there any workaround? > > Thank you! > > Takeo Shibata > > ===OpenLayers Code==== > function createWMSImageLayer(map) { > var wms = new OpenLayers.Layer.WMS( > "Albania-Flood Overview", > > "http://xhema.flossk.org:8080/cgi-bin/mapserv?map=/var/www/mapserver/alllayers.map", > {layers: "DLR_20100108_Albania_floods_overview_high", > format: 'image/jpeg' > }, > {isBaseLayer: true} > ); > map.addLayer(wms); > } > > function createOSMVectorLayers(map) { > var ways_02000 = new OpenLayers.Layer.Vector("ways_02000",{ > strategies: [new OpenLayers.Strategy.Fixed()], > protocol: new OpenLayers.Protocol.HTTP({ > url: > "http://xhema.flossk.org:8080/mapdata/03/MapAction/tpginc/out_LL_Rivers/ways_02000.osm", > format: new OpenLayers.Format.OSM({ > extractStyles: true, > extractAttributes: true > }) > }) > }, { > singleTile: true > }); > var ways_02100 = new OpenLayers.Layer.Vector("ways_02100",{ > strategies: [new OpenLayers.Strategy.Fixed()], > protocol: new OpenLayers.Protocol.HTTP({ > url: > "http://xhema.flossk.org:8080/mapdata/03/MapAction/tpginc/out_LL_Rivers/ways_02100.osm", > format: new OpenLayers.Format.OSM({ > extractStyles: true, > extractAttributes: true > }) > }) > }, { > singleTile: true > }); > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users