Displaying a Google Map on the Trail Detail Page
When you are displaying the individual trail detail page you often want to show a large Google map showing the line segments for the trail and any trail features.
Below we will outline the general steps that you can use to setup a Google map.
Setup the Content Template
You will first need to create a Trail Detail content template. See Content Templates for more information. You will also then need to configure the Trail Detail layout. See Layouts for more information.
The map.js file is where the Google map gets initialized, the markers get setup and the line segments get created.
The trail-detail.js file holds the setup code for just the trail detail page.