Hinode logo
  • About 
  • Docs 
  • Components 
  • Guides 
  • Releases 
  •  
Docs
  • Getting Started
    • Introduction
    • Commands
    • Hosting and Deployment
    • Upgrading
    • Private Modules and Packages
    • Contribute
    • Troubleshooting
  • Content
    • Content Management
    • Content Organization
    • Typography
    • Links and Cross-References
    • Images and Figures
    • Tables
    • Icons
  • Configuration
    • Layout
    • Colors
    • Color Modes
    • Fonts
    • Languages
    • Navigation
    • Documentation
    • Analytics
    • Modules
    • Cookie Consent
    • Digital Asset Managers
  • Components
    • Abbr
    • Accordion
    • Alert
    • Animation
    • Args
    • Badge
    • Breadcrumb
    • Button
    • Button Group
    • Card
    • Card Group
    • Carousel
    • Collapse
    • Command Prompt
    • Docs
    • Example
    • File
    • Icon
    • Image
    • Ins
    • Kbd
    • Link
    • Map
    • Mark
    • Navbar
    • Navs and Tabs
    • Persona
    • Release
    • Spinner
    • Sub
    • Sup
    • Table
    • Timeline
    • Toast
    • Tooltip
    • Video
  • Advanced Settings
    • Overview
    • Styles
    • Scripts
    • Icons
    • Partial Development
    • Module Development
    • Server Headers
    • Server-Side Redirection
  • About
    • Credits
    • License
  • Getting Started
    • Introduction
    • Commands
    • Hosting and Deployment
    • Upgrading
    • Private Modules and Packages
    • Contribute
    • Troubleshooting
  • Content
    • Content Management
    • Content Organization
    • Typography
    • Links and Cross-References
    • Images and Figures
    • Tables
    • Icons
  • Configuration
    • Layout
    • Colors
    • Color Modes
    • Fonts
    • Languages
    • Navigation
    • Documentation
    • Analytics
    • Modules
    • Cookie Consent
    • Digital Asset Managers
  • Components
    • Abbr
    • Accordion
    • Alert
    • Animation
    • Args
    • Badge
    • Breadcrumb
    • Button
    • Button Group
    • Card
    • Card Group
    • Carousel
    • Collapse
    • Command Prompt
    • Docs
    • Example
    • File
    • Icon
    • Image
    • Ins
    • Kbd
    • Link
    • Map
    • Mark
    • Navbar
    • Navs and Tabs
    • Persona
    • Release
    • Spinner
    • Sub
    • Sup
    • Table
    • Timeline
    • Toast
    • Tooltip
    • Video
  • Advanced Settings
    • Overview
    • Styles
    • Scripts
    • Icons
    • Partial Development
    • Module Development
    • Server Headers
    • Server-Side Redirection
  • About
    • Credits
    • License

Map

Share via
Hinode
Link copied to clipboard

Use the map shortcode to show an interactive map.

On this page
Overview   Arguments   Configuration   Examples   Zoom Level   Center Coordinates   Identification  

Overview  

Added in v0.16.0   

Use the map shortcode to show an interactive map, powered by Leaflet  . The shortcode is a wrapper of the Leaflet library that provides basic functionality. As an example, the following shortcode displays an interactive map of the city of Amsterdam.

markdown
  {{< map lat=52.377 long=4.90 popup="Amsterdam Central Station" popup-lat=52.378062 popup-long=4.900562 >}}

Arguments  

The shortcode supports the following arguments:

Name Type Required Default Comment
class string ratio ratio-16x9 w-100 mx-auto Class attribute of the inner panel element.
id string Unique identifier of the map element, defaults to leaflet-map-n with a sequential number n.
lat float, float64 52.377 Latitude of the map center.
long float, float64 4.9 Longitude of the map center.
popup string Optional text of a popup marker.
popup-lat float, float64 Latitude of the popup marker.
popup-long float, float64 Longitude of the popup marker.
zoom int 13 Initial map zoom level between 1 (minimum zoom) - 18 (maximum zoom). Supported values: [1 - 18].
Name Type Required Default
class string ratio ratio-16x9 w-100 mx-auto
Class attribute of the inner panel element.
id string
Unique identifier of the map element, defaults to leaflet-map-n with a sequential number n.
lat float, float64 52.377
Latitude of the map center.
long float, float64 4.9
Longitude of the map center.
popup string
Optional text of a popup marker.
popup-lat float, float64
Latitude of the popup marker.
popup-long float, float64
Longitude of the popup marker.
zoom int 13
Initial map zoom level between 1 (minimum zoom) - 18 (maximum zoom). Supported values: [1 - 18].

Configuration  

By default, map support is optional. Be sure to include leaflet in your Module Configuration and Page Frontmatter as needed.

Examples  

Change the location and style of your map with shortcode arguments.

Zoom Level  

Set the zoom to a value of 1 to display a world map. The map is centered on Europe by default, adjust the lat and long values to set a different center.

markdown
{{< map zoom=1 >}}

Center Coordinates  

Specify the map center by providing lat and long values. Add a marker to the map by specifying a popup text and popup-lat and popup-long coordinates. The following example display the city center of Amsterdam and adds a marker for the central train station.

markdown
{{< map lat=52.377 long=4.90 popup="Amsterdam Central Station" popup-lat=52.378062 popup-long=4.900562 >}}

Identification  

Assign a specific identified to the map by setting the id argument. The following example displays a map for the city of London with a unique id.

markdown
{{< map id="leaflet-map-london" lat=51.505 long=-0.09 zoom=10 >}}
• Update to Hinode v0.27.13 (b6f5054)
On this page:
Overview   Arguments   Configuration   Examples   Zoom Level   Center Coordinates   Identification  
Map
Map
Hinode is a clean documentation and blog theme for your Hugo site based on Bootstrap 5.
Code licensed MIT, docs CC BY-NC 4.0
Currently v0.29.3
Privacy | Cookies
 
Links
Home 
About 
Docs 
Components 
Releases 
Guides
Getting Started 
Developing Modules 
Optimization 
Versioning 
Community
Issues   
Discussions   
Contribute 
Hinode
Code copied to clipboard