Maps on your website don't have to be boring π
Use Advanced Maps and embed a beautiful π Maps on your website. Supports Google Maps and Mapbox π.
Config after installation:
- Depending on which map provider you want to use, follow
Google Maps setup
orMapbox setup
(described below). - Render
{{ advanced_maps }}
among other<script />
tags on your page - Create a new Fieldset. Add
AdvancedMaps
field into it. - Remember your
Field Variable
. It's your map's name and you need this in next steps. - Create a page that uses your newly created Fieldset.
- Customize a map to your preferences.
- Render your map like this:
{{ your_map_name | advanced_maps }}
.
Google Maps setup
- Provide Google API key in addon settings. How do I get my API key?
- In Google Cloud Platform Console enable
Maps Javascript API
andGeocoding API
- β οΈ Note: usage of this addon most likely will generate some cost in Google Cloud Platform. Make sure you know their pricing plans before continuing.
Mapbox setup
- From your Mapbox account copy Access token and paste it into the addon settings.
Customizing a theme π¨
- Go to Snazzy Maps
- Pick a color pallete you like
- Paste the
JAVASCRIPT STYLE ARRAY
into theStyles
texarea. The text you paste should start with[
character and end with]
.
Mapbox
- Go to Mapbox Studio
- Create a style you like
- Click
share
at the top right - Copy
Your style URL
and paste it into theStyles
input.
Feeling stucked? Hit me up on [email protected], we'll jump on a Hangout call and figure it out together. I'd love to hear your feedback and suggestions as well.