Embed a map & details of a POI or Waypoint.

Step 1: Select a POI/Waypoint

  • You can get ID from the POI/Waypoint detail page - it is the last numeric segment on the detail page URL.

Step 2: Configuration

  • leave blank for auto-zoom
    Use Current Zoom

Widget Preview

Step 3: Get the code

If including multiple Trailforks widgets on the same page, the javascript portion below only needs to be included ONCE per page!

Advanced

  1. You can optionally provide your own custom CSS file to custom style the widget to your desire.
    add the following code to the widgets DIV or iframe URL, data-style="URL_TO_YOUR_CSS_FILE" OR &style=URL_TO_YOUR_CSS_FILE
    You can set the widget width to 100% to have the widget height responsively adjust (must use the JS code, not iframe).
  2. You can include the widget source directly into your page using PHP CURL or a Javascript Ajax call.
    The direct URL to the widget source is: https://www.trailforks.com/widgets/marker/
    the following are the URL GET paramaters you can pass: mt (poi/waypoint), id, basemap, z. Use the data-* in the "get the code" box above for reference.