[OpenLayers-Dev] Gpx vector layer not displayed
Tobias Reinicke
ramotswa at gmail.com
Fri Oct 7 06:50:21 EDT 2011
Oh and switch the order of these two script tags:
<script src="http://openstreetmap.org/openlayers/OpenStreetMap.js"></script>
<script src="js/OpenLayers.js"></script>
the openstreetmap js file needs the openlayers js file to have loaded first.
Toby
On 7 October 2011 11:48, Tobias Reinicke <ramotswa at gmail.com> wrote:
> Hi,
>
> When I run your site I get a 404 error regarding the .sdx file. It
> can't find it (which is probably your problem).
> It's looking here:
> GET http://mura-drava-bike.com/gpxtest/gpx/myosmfile.gpx 404 (Not Found)
>
> Make sure the path in url: "gpx/myosmfile.gpx", is correct.
>
> Toby
>
> On 7 October 2011 11:43, nikolaHr <smetlishte at gmail.com> wrote:
>> Hi, I have problem rendering vector layer on top of map only when is viewed
>> from server side.
>> I'm using openlayers in combination with gpx file (and txt files for poi
>> locations around route).
>>
>> Please, someone look my code and help me figure what I'm doing wrong. There
>> should be red route over map!
>>
>> Here is link on webpage:
>> http://mura-drava-bike.com/gpxtest/
>>
>> and link to function:
>> http://mura-drava-bike.com/gpxtest/js/myFunctions.js
>>
>> Vector layer is in *trasa *variable (line 20), called to render (line 35).
>>
>>
>> So. there should be red vector line representing route from gpx file, but it
>> is not. That is problem.
>> p.s. when viewing locally on my pc, *everything *is fine and working
>>
>> --
>> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Gpx-vector-layer-not-displayed-tp6868869p6868869.html
>> Sent from the OpenLayers Dev mailing list archive at Nabble.com.
>> _______________________________________________
>> Dev mailing list
>> Dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>>
>
More information about the Dev
mailing list