mercredi, juillet 18, 2018
[stack_hero image= »38″]

Maps

These modular elements can be readily used and customized across pages and in different blocks.


Explore all of Stack’s modular elements
at the Element Index Page →

[/stack_hero]
[vc_section css= ».vc_custom_1498220876889{padding-top: 0px !important;} » ebor_docs= » »]
[stack_boxed_content padding= »boxed–lg » background= »bg–secondary »]

Iframe Map

Basic iframe maps can be embedded from maps.google.com. By default, the iframe map will span 100% the width of the container it is placed inside.

NOTE: Customizing the maps appearance is not available in the iframe embed.

[/stack_boxed_content]
[vc_gmaps link= »#E-8_JTNDaWZyYW1lJTIwc3JjJTNEJTIyaHR0cHMlM0ElMkYlMkZ3d3cuZ29vZ2xlLmNvbSUyRm1hcHMlMkZlbWJlZCUzRnBiJTNEJTIxMW0xOCUyMTFtMTIlMjExbTMlMjExZDQwMjU4Ni44NDcwNDY0ODI2NyUyMTJkMTQ0Ljc3Mjk1NzY4MjIxMDc3JTIxM2QtMzcuOTcyMjM0MjM0Mzc0NTc1JTIxMm0zJTIxMWYwJTIxMmYwJTIxM2YwJTIxM20yJTIxMWkxMDI0JTIxMmk3NjglMjE0ZjEzLjElMjEzbTMlMjExbTIlMjExczB4NmFkNjQ2YjVkMmJhNGRmNyUyNTNBMHg0MDQ1Njc1MjE4Y2NkOTAlMjEyc01lbGJvdXJuZSUyQlZJQyUyMTVlMCUyMTNtMiUyMTFzZW4lMjEyc2F1JTIxNHYxNDcyNTMyNzExOTI4JTIyJTIwJTNFJTNDJTJGaWZyYW1lJTNF »]
[/vc_section][vc_section]
[stack_boxed_content padding= »boxed–lg » background= »bg–secondary »]

Google Maps API

For a map with more style options, opt for the Google Maps API map. This map requires you to have your own developer API key from Google but opens up more attractive options for embedded maps.

There are a number of data attribute options to customise the behaviour of the map:

  • data-maps-api-key= »ApIKeYtExt1234″ – Your Maps API Key, required to use a Google JS API map.
  • data-address= »123 Address Place, Townsville » – a simple text address acceptable by Google Maps with up to 10 addresses separated by semicolons.
  • data-map-zoom= »NUM » – Sets zoom level between 1 and 12.
  • data-map-style= »JSON » – Apply any style from Snazzy Maps or make your own.
  • data-marker-title= »Title Text » – Text to appear when user hovers over map marker.
[/stack_boxed_content]
[stack_styled_map api_key= »AIzaSyCfo_V3gmpPm1WzJEC9p_sRbgvyVbiO83M » address= »Goleta, California »]
[/vc_section]

Looking for styled map sections?

View Map Sections

or try the admin demo ↗