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 >
  • A Stategic Tool By creating this tool Mr. Cristi Teodoreanu is about to bring Mapping to all the developing countries that do not have the financial…
  • Rapiditate, eficienta, calitate - doar cateva dintre atributele voastre!  Multumesc pentru colaborare ! Si pe viitor, sa o tinem tot asa !
    (Dr. Tudor Ionescu,…
  • 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…
  • You are characterized by quality, efficiency, professionalism, and seriousness. Thank you for your service !
    Dorel Nitulescu, Manager
    vreaupermis.wis.ro
  • Bityard.com was looking for an easy solution to add more value to its business articles and reviews.  Fortunately, Cristi Teodoreau…