Hi,
Jørgen you are right, the test was running from local file system. Now I
have installed Apache web server. The test is now running on IE8 without
problems also FF, but no changes for Opera.
I have looked into the DOM/HTML for one route:
example from FF firebug (without style)
<div id="OpenLayers.Map_5_OpenLayers_ViewPort" class="olMapViewport
olControlDragPanActive olControlZoomBoxActive olControlNavigationActive
olControlKeyboardDefaultsActive olControlMousePositionActive">
<div id="OpenLayers.Map_5_OpenLayers_Container" >
<div id="OpenLayers.Layer.WMS_40" dir="ltr" class="olLayerDiv">
<div id="OpenLayers.Layer.GML_42" dir="ltr" class="olLayerDiv">
<svg id="OpenLayers.Layer.GML_42_svgRoot" width="1024" height="512"
viewBox="0 0 1024 512">
<g id="OpenLayers.Layer.GML_42_root" style="display: block;
visibility: visible;" transform="">
<g id="OpenLayers.Layer.GML_42_vroot"><polyline
id="OpenLayers.Geometry.LineString_341" points="481.336,250.068 ...
493.718,284.132" fill="none" stroke="blue" stroke-opacity="0.5"
stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></g>
<g id="OpenLayers.Layer.GML_42_troot"/></g></svg></div>
The OpenLayers.Layer.GML_42_vroot has content from gpx file. In IE8
it’s nearly the same.
But in Opera has OpenLayers.Layer.GML_42_vroot no content. In my opinion the
gpx file was not loaded.
Thanks for hints.
Hareck
Jørgen S. Nicolaysen wrote:
>
> Hi
>
> If you are testing this by running from local file system. The browsers
> security
> model kicks in and preventing you from reading the gpx files.
> Try running this from a web server instead.
> I got this error in ie8 when running on a webserver:
> (In an alert box)
> Error in loading GML file tour2.gpx
>
> I got the same error in ff.
>
> Regards
> Jørgen
>
>
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Openlayers-with-WMS-as-base-map-and-GML-GPX-overlay-layers-tp5721731p5725478.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users