Kirby Map (Location-Field & Map-Block)

Hey! I made a Plugin to configure a Map. It includes two features:

Location-Field
Search Location and get coordinates:

geolocation_screenshots

Map-Block
Set the center-location, the zoom and many markers:

Have fun!
To the Plugin

1 Like

Hi microman, very nice Job, thank you. Unfortunately i can’t set a location. I’m getting this error message: «Cannot set properties of undefined (setting ‘defaultName’)». Can you send me in the right direction, what to look out for. Thanks.

This issue’s fixed in version 1.0.1.

Great, thx for the quick respond! :+1:t3:

Hi @Microman ,

How to display the map on the front side? I couldn’t find an example.

Thanks

Hi Mickael

Thank for asking. It’s a Plugin for the Kirby block field. To use this, you will add a Blockfield in the blueprint like this:

map:
  type: blocks
  fieldsets:
    - maps

And in the frontend you can insert this:

<?php foreach ($page->map()->toBlocks() as $block) : ?>
 <?= $block ?>
<?php endforeach ?>

Please check it out. Is it working?