You can control the behavior of the map by using the following URL parameters:

  • ?mode=wp or ?mode=fb: Specifies the mode.
    • wp: WordPress mode
    • fb: Facebook mode (default)
  • ?veh_id=1: Specifies the vehicle ID (default 1).
  • ?limit=50: Limits the track to the most recent entries.
  • ?nomarkers=1: Removes all markers from the map.
  • ?zoom=10: Sets map zoom (default 7).
  • ?endmarker=1: Adds a marker at the most recent position.
  • ?centre=1: Centers the map on the most recent location.
  • ?help=1: Displays this help information.

Example URL

map.php?mode=wp&veh_id=2&limit=50&nomarkers=1&zoom=12&endmarker=1&centre=1

This example uses WordPress mode, vehicle ID 2, limits to 50 points, hides markers, sets zoom 12, adds the end marker, and centers the map.