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 >
  • Deosebit de operativ si cooperant la realizarea siteului firmei, site  ce a imbunatatit imaginea societatii si relatiile cu potentialii clienti, prin faptul ca le-a adus…
  • 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…
  • Cristi worked on a Mambo web project for our company web site and we were ecstatic with his dedication and professionalism with the project. We…
  • We have met him over the Internet, but it was probably one of the luckiest days of my life ! He's done an excellent job…
  • Trumpet International made use the WIS.ro for both our website design and mapping component. The service was excellent and for us, we will most definately…