Skip to content

a custom kirby section for pages which have location data

Notifications You must be signed in to change notification settings

the-leonat/kirby-map-section

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kirby-map-section

a custom kirby section for pages which have location data

Screenshot 2022-06-08 at 20 19 30

how to use in blueprint

sections: 
    map:
        type: locations                                
        label: Locations                            # section label
        query: kirby.page("some-page").children     # query must return a collection of pages, files or a structure
   
        #  optional parameters (with defaults)
          
        markerLocationLat: page.location.yaml.lat   # lat coordinate
        markerLocationLong: page.location.yaml.lon  # lon coordinate
        markerLabel: '{{page.title}}'               # title for marker popup
        markerImage: page.image.resize(200).url     # image for marker popup
        markerInfo: ''                              # info text for marker popup

About

a custom kirby section for pages which have location data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published