To start you'll need to get a Mapbox Access Token and add the epicmaps script to your project.
Get your Mapbox Access Token from your Mapbox account.
If you don't already have a Mapbox account, sign up for one here.
Access tokens can be viewed by people visiting your site so we recommend generating a private token so that yours can only be used on the domains that you specify.
Copy the epicmaps <script> and paste it into the <head> custom code of your page.
Copy your Mapbox Access Token from the previous step and paste it into the box below. This will add it to the end of the epicmaps <script> that you can then copy and paste into the <head> custom code of your page.
<!-- epicmaps | buildepicmaps.com -->
<script src="https://cdn.epicnoco.de/epic-maps.js?token={{YOUR_ACCESS_TOKEN}}"></script>
To start you'll need to get a Mapbox Access Token and add the epicmaps script to your project.
Add element attribute to your MAP container.
epic-map-element=”map”
Add this attribute to the empty DIV that will contain the MAP.
To start you'll need to get a Mapbox Access Token and add the epicmaps script to your project.
Add element attribute to your LIST element.
epic-map-element=”list”
Add this attribute to the COLLECTION LIST for the items that will be added to the MAP.
Add address or lng & lat attributes to ITEM elements.
epic-map-address="{{ITEM'S ADDRESS}}"
Add this attribute to each ITEM (children of the LIST element).
epicmaps uses Mapbox's Geocoding API to return longitude and latitude coordinates based on the ADDRESS attribute to position an ITEM's MARKER on the MAP.
Streets, cities and other areas can be used which will position that item's marker at the centre of the area.
OR
epic-map-lng="{{ITEM'S LONGITUDE}}"
epic-map-lat="{{ITEM'S LATITUDE}}"
Add both attributes to each ITEM (children of the LIST element).
These coordinates are used to position an ITEM's MARKER on the MAP.
epicmaps automatically integrates with Finsweet Attributes v2 List as long as the LIST is the same Collection List element, changes to the LIST ITEMs will be reflected on the MAP.
epic-map-element="list"
fs-list-element="list"
Add element attribute to your MARKER element.
epic-map-element=”marker”
Add this attribute to an element or collection of elements within an ITEM that will be that ITEM's MARKER on the MAP.
If added, a MARKER element will override any epic-map-marker color or classname attributes added to the ITEM or it's parent LIST.
Add element attribute to your POPUP element.
epic-map-element=”popup”
Add this attribute to an element or collection of elements within an ITEM that will be the POPUP attached to the ITEM's MARKER.