Web Intelligent Solutions
EnglishRomana
font size Increase font size Default font size Decrease font size
screen size Narrow screen resolution Wide screen resolution Auto adjust screen size
Home arrow WISroGIS Tutorials arrow Loading GPX files on WISroGIS maps

Loading GPX files on WISroGIS maps

Print E-mail

GPS tracks in GPX format can be added to a WISroGIS map as overlay.

The below example show a number of bike routes mapped on top of 4 base layers (OpenStreetMap Mapnik, OpenStreetMap Cycle Map, Yahoo Map and Google Physical map).

Powered by WISroGIS 1.11 Zeus

GPX sample data from Thomas Büdel

 

To load a GPX layer on the map, you can use:

layer='GML("Route 6", "kml/gpx-example/Bikewald Route 6.gpx",

{ style: {strokeColor: "#000000", pointRadius:5, strokeWidth: 4, strokeOpacity: 0.75},

format: OpenLayers.Format.GPX,  formatOptions: {extractWaypoints: true, extractTracks: true, extractRoutes:true, extractAttributes: true}, 

projection: new OpenLayers.Projection("EPSG:4326") })'

The available mapping parameters for the GPX layer are:

  • formatOptions:

extractWaypoints: {Boolean} - Extract waypoints from GPX.

extractTracks : {Boolean} - Extract tracks from GPX.

extractRoutes : {Boolean} - Extract routes from GPX.

extractAttributes :{Boolean} - Extract feature attributes from GPX.

 


Digg!Del.icio.us!Technorati!Yahoo!Ma.gnolia!
 
< Prev   Next >
  • Rezultatul colaborarii noastre cu echipa WIS este faptul ca firma Eurosprint Travel a avut de castigat atat ca imagine, care s-a imbunatatit considerabil, cat si…
  • On behalf of the Board of Directors of Algal Engineering Ltd., I would like to take this opportunity and express our happiness for the quality…
  • Our experience with WIS.ro has been entirely positive. All our needs were met exactly as we requested and on time. We had a close dialogue…
  • Va trimitem prezenta scrisoare pentru a va multumi pentru promptitudinea si rapiditatea cu care ne-ati raspuns cerintelor noastre. Apreciem calitatea serviciilor dumeavoastra, calitatea modului in…
  • The WISro Yahoo Quotes component is a very powerful add-on and exactly the addon we were looking for.It was very easy to install and easy…