From 66297450b9174e8bcdc7380a988fb13025a526a9 Mon Sep 17 00:00:00 2001 From: Maxime Petazzoni Date: Tue, 14 Feb 2017 16:30:23 -0800 Subject: [PATCH] README updates for 1.3.0 --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 59cb6f2..4c31de0 100644 --- a/README.md +++ b/README.md @@ -37,13 +37,13 @@ scripts in your HTML page: ```html - + - - + + ``` @@ -182,16 +182,18 @@ By default `gpx.js` will parse Waypoints from a GPX file. This may also be steered via the value `waypoint` in `gpx_options`, e.g. `parseElements: ['track', 'route', 'waypoint']`. -Waypoint icons: by default the Leaflet default icon is shown for each -waypoint. Via the `L.GPX` constructor option: -`marker_options.wptIconUrls` one can supply mappings from the Waypoint -"SYM" name to a user-supplied icon file or URL. See the example below. +Waypoint icons: by default the `pin-icon-wpt.png` icon is shown for each +waypoint. This can be overridden by setting `marker_options.wptIconUrls` +in the `L.GPX` constructor options, as a mapping from the waypoint "SYM" +name to a user-supplied icon file or URL. The empty string `''` is used +by the waypoint tag does not define a "SYM" name. See the example below: ```javascript new L.GPX(app.params.gpx_url, { async: true, marker_options: { wptIconUrls: { + '': 'img/gpx/default-waypoint.png', 'Geocache Found': 'img/gpx/geocache.png', 'Park': 'img/gpx/tree.png' },