[OpenLayers-Users] GPX-file from external location -	layer/tracknot visible
    Arnd Wippermann 
    arnd.wippermann at web.de
       
    Mon Sep  2 10:50:41 PDT 2013
    
    
  
Hi,
The projection attribute holds the projection of the data.
// Add the Layer with the GPX Track
var layerGPS = new OpenLayers.Layer.Vector("GPX-Track", {
          strategies: [new OpenLayers.Strategy.Fixed()],
          protocol: new OpenLayers.Protocol.HTTP({
              url: "gpx_uploaded/20130825.gpx",  
              format: new OpenLayers.Format.GPX()
          }),
          style: {fillColor: "darkred", strokeColor: "red", strokeWidth: 5,
strokeOpacity: 0.5, pointRadius: 5},
          projection: new OpenLayers.Projection("EPSG:4326")
  });
map.addLayer(layerGPS);
Arnd
 
-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von jmeyerdo
Gesendet: Dienstag, 27. August 2013 12:31
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] GPX-file from external location - layer/tracknot
visible
Hello!
My last problem was solved (wrong base details/data caused the wrong
track/geometry path in OpenLayer, not my configuration).
Now I am using correct base data (external gpx-files) which worked pretty
well in another test. But for my new map the gpx-file is not visible. The
file is loaded (shown by Bugzilla) and no further error message is shown.
All other layers are shown properly.
Perhaps anybody can help me with a short tipp how to debug this issue?
http://www.motivatedbynature.eu/gps/map_new3.php?showday=20130825
Code is:
-->
               // Add the Layer with the GPX Track
	        var layerGPS = new OpenLayers.Layer.Vector("GPX-Track", {
                    strategies: [new OpenLayers.Strategy.Fixed()],
                    protocol: new OpenLayers.Protocol.HTTP({
                        url: "gpx_uploaded/<?php echo $date ?>.gpx",  
                        format: new OpenLayers.Format.GPX()
                    }),
                    style: {fillColor: "darkred", strokeColor: "red",
strokeWidth: 5, strokeOpacity: 0.5, pointRadius: 5},
                    projection: projMercator
            });
          map.addLayer(layerGPS);		   
<--
Best regards,
       Jens
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GPX-file-from-external-location-layer-tr
ack-not-visible-tp5074497.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
    
    
More information about the Users
mailing list