{"id":"69c593b15aae965d81fcb52e","title":"Map Rows","path":"how-to/committee/editing-content/map-rows","contentMarkdown":"# GPX Route Maps\n\nMap rows display interactive maps with walking routes loaded from GPX files. Routes are shown as coloured lines on the map, and visitors can zoom, pan, and toggle waypoints. The map below is an interactive map with a GPX route loaded of [The Kent Coast Path, courtesy of Explore Kent](https://explorekent.org/activities/england-coast-path-kent/).\n\n\n## When to Use Map Rows\n\nMap rows are ideal for:\n- Walking route pages showing the path on a map\n- Long-distance paths with detailed route lines\n- Any page where you want to display a geographic route\n\n## What a Map Row Displays\n\n- An interactive map with one or more walking routes\n- Routes shown as coloured lines with direction arrows\n- Start and end point markers\n- Optional waypoints from the GPX file\n- Zoom and pan controls\n- Choice of OpenStreetMap or Ordnance Survey map tiles\n\n## Adding a Map Row\n\n1. Open the page in the CMS editor\n2. Click **Add Row** (or the **+** button between existing rows)\n3. Select **Map** from the row type dropdown\n4. The row initialises with an empty map centered on the UK\n\n## Uploading a GPX Route\n\n1. In the map row editor, click **Add Route**\n2. Click **Browse** or drag-and-drop a GPX file\n3. The route appears on the map immediately\n4. Give the route a name in the **Name** field\n\n### Supported File Types\n- **GPX files** (.gpx) - Standard GPS exchange format, uploaded directly\n- **ESRI/GeoJSON files** (.zip, .geojson, .json) - Converted to GPX automatically during import\n\n## Styling Routes\n\nEach route has its own styling options, accessed via the colour palette editor:\n\n- **Colour** - Choose from 10 predefined colours to distinguish multiple routes\n- **Thickness** - Set line width (4, 6, 8, or 10 pixels)\n- **Opacity** - Adjust transparency from fully transparent to fully opaque\n- **Visibility** - Toggle individual routes on or off\n\n## Map Configuration\n\n### Map Provider\n- **OpenStreetMap (OSM)** - Free, detailed street and path maps (default)\n- **Ordnance Survey (OS)** - Premium UK maps including the familiar 1:25,000 Leisure series (requires API key)\n\n### Map Settings\n- **Height** - Set the map height in pixels (default: 500px)\n- **Map Center** - Set the initial center point coordinates\n- **Zoom Level** - Set the initial zoom level\n- **Auto-fit Bounds** - When enabled, the map automatically zooms to fit all routes (recommended)\n\n### Display Options\n- **Show Controls** - Toggle zoom/pan controls on the map\n- **Allow Controls Toggle** - Let visitors show/hide controls\n- **Show Waypoints** - Display waypoint markers from the GPX file\n- **Allow Waypoints Toggle** - Let visitors show/hide waypoints\n\n## Using Location Markers\n\nIf the same page has a **Location row**, the map can automatically sync markers from it:\n- Enable **Use Location from Page** in the map settings\n- The map will show markers for the start (and end) location defined in the location row\n- This keeps location data consistent between the location row and the map\n\n## Multiple Routes\n\nYou can add multiple routes to a single map:\n- Click **Add Route** again to add another GPX file\n- Each route can have its own colour and styling\n- Use this for alternative routes or multi-stage walks\n- The auto-fit bounds option will zoom to show all routes\n\n## Tips\n\n- **Auto-fit bounds** is recommended for most pages — it ensures visitors see the full route without manual zooming\n- For very large route files (over 5MB), the system will display a warning — consider simplifying the GPX\n- Routes with many features (100+) automatically use viewport-based filtering for performance\n- GPX files can be created from most walking/hiking apps (OS Maps, Komoot, AllTrails, etc.)\n- The map text field above the map supports Markdown for adding route descriptions\n","contentHtml":"<h1>GPX Route Maps</h1>\n<p>Map rows display interactive maps with walking routes loaded from GPX files. Routes are shown as coloured lines on the map, and visitors can zoom, pan, and toggle waypoints. The map below is an interactive map with a GPX route loaded of <a href=\"https://explorekent.org/activities/england-coast-path-kent/\">The Kent Coast Path, courtesy of Explore Kent</a>.</p>\n<h2>When to Use Map Rows</h2>\n<p>Map rows are ideal for:</p>\n<ul>\n<li>Walking route pages showing the path on a map</li>\n<li>Long-distance paths with detailed route lines</li>\n<li>Any page where you want to display a geographic route</li>\n</ul>\n<h2>What a Map Row Displays</h2>\n<ul>\n<li>An interactive map with one or more walking routes</li>\n<li>Routes shown as coloured lines with direction arrows</li>\n<li>Start and end point markers</li>\n<li>Optional waypoints from the GPX file</li>\n<li>Zoom and pan controls</li>\n<li>Choice of OpenStreetMap or Ordnance Survey map tiles</li>\n</ul>\n<h2>Adding a Map Row</h2>\n<ol>\n<li>Open the page in the CMS editor</li>\n<li>Click <strong>Add Row</strong> (or the <strong>+</strong> button between existing rows)</li>\n<li>Select <strong>Map</strong> from the row type dropdown</li>\n<li>The row initialises with an empty map centered on the UK</li>\n</ol>\n<h2>Uploading a GPX Route</h2>\n<ol>\n<li>In the map row editor, click <strong>Add Route</strong></li>\n<li>Click <strong>Browse</strong> or drag-and-drop a GPX file</li>\n<li>The route appears on the map immediately</li>\n<li>Give the route a name in the <strong>Name</strong> field</li>\n</ol>\n<h3>Supported File Types</h3>\n<ul>\n<li><strong>GPX files</strong> (.gpx) - Standard GPS exchange format, uploaded directly</li>\n<li><strong>ESRI/GeoJSON files</strong> (.zip, .geojson, .json) - Converted to GPX automatically during import</li>\n</ul>\n<h2>Styling Routes</h2>\n<p>Each route has its own styling options, accessed via the colour palette editor:</p>\n<ul>\n<li><strong>Colour</strong> - Choose from 10 predefined colours to distinguish multiple routes</li>\n<li><strong>Thickness</strong> - Set line width (4, 6, 8, or 10 pixels)</li>\n<li><strong>Opacity</strong> - Adjust transparency from fully transparent to fully opaque</li>\n<li><strong>Visibility</strong> - Toggle individual routes on or off</li>\n</ul>\n<h2>Map Configuration</h2>\n<h3>Map Provider</h3>\n<ul>\n<li><strong>OpenStreetMap (OSM)</strong> - Free, detailed street and path maps (default)</li>\n<li><strong>Ordnance Survey (OS)</strong> - Premium UK maps including the familiar 1:25,000 Leisure series (requires API key)</li>\n</ul>\n<h3>Map Settings</h3>\n<ul>\n<li><strong>Height</strong> - Set the map height in pixels (default: 500px)</li>\n<li><strong>Map Center</strong> - Set the initial center point coordinates</li>\n<li><strong>Zoom Level</strong> - Set the initial zoom level</li>\n<li><strong>Auto-fit Bounds</strong> - When enabled, the map automatically zooms to fit all routes (recommended)</li>\n</ul>\n<h3>Display Options</h3>\n<ul>\n<li><strong>Show Controls</strong> - Toggle zoom/pan controls on the map</li>\n<li><strong>Allow Controls Toggle</strong> - Let visitors show/hide controls</li>\n<li><strong>Show Waypoints</strong> - Display waypoint markers from the GPX file</li>\n<li><strong>Allow Waypoints Toggle</strong> - Let visitors show/hide waypoints</li>\n</ul>\n<h2>Using Location Markers</h2>\n<p>If the same page has a <strong>Location row</strong>, the map can automatically sync markers from it:</p>\n<ul>\n<li>Enable <strong>Use Location from Page</strong> in the map settings</li>\n<li>The map will show markers for the start (and end) location defined in the location row</li>\n<li>This keeps location data consistent between the location row and the map</li>\n</ul>\n<h2>Multiple Routes</h2>\n<p>You can add multiple routes to a single map:</p>\n<ul>\n<li>Click <strong>Add Route</strong> again to add another GPX file</li>\n<li>Each route can have its own colour and styling</li>\n<li>Use this for alternative routes or multi-stage walks</li>\n<li>The auto-fit bounds option will zoom to show all routes</li>\n</ul>\n<h2>Tips</h2>\n<ul>\n<li><strong>Auto-fit bounds</strong> is recommended for most pages — it ensures visitors see the full route without manual zooming</li>\n<li>For very large route files (over 5MB), the system will display a warning — consider simplifying the GPX</li>\n<li>Routes with many features (100+) automatically use viewport-based filtering for performance</li>\n<li>GPX files can be created from most walking/hiking apps (OS Maps, Komoot, AllTrails, etc.)</li>\n<li>The map text field above the map supports Markdown for adding route descriptions</li>\n</ul>\n"}