Loki_MapComponents

Jump to User Docs

Components
PHP 8.1 - 8.4
Magento 2.4.7 | 2.4.8
CSP Yes
PHPStan 5
Magento PHPCS 8
Latest Release 0.2.0

This Magento 2 module is an add-on package to Loki Components. It contains templates, Alpine.js components and PHP classes to build maps into other modules. It can be used within the LokiCheckout but also on other Magento pages.

Installation

Install this package via composer:

composer require loki/magento2-map-components

Next, enable this module:

bin/magento module:enable Loki_MapComponents

Support

For getting support, create an Issue under the following project URL:

https://gitlab.yireo.com/loki-checkout/Loki_MapComponents

Configuration Options

The following options of this module can be configured via the Store Configuration:

Generic Settings > Default longitude
loki_map_components/generic/default_longitude
Longitude to center the map towards at the beginning
Generic Settings > Default latitude
loki_map_components/generic/default_latitude
Latitude to center the map towards at the beginning
Google Maps Settings > API key
loki_map_components/google/api_key
Enter your Google Maps API key
Module Dependencies

The following dependencies are declared in the module its `etc/module.xml` file:

Loki_Base Loki_Components Loki_CssUtils Magento_Backend Magento_Config Magento_Customer Magento_Directory Magento_Eav Magento_Store Magento_Theme Yireo_CspUtilities
Composer details
Magento module name
Loki_MapComponents
Composer name
loki/magento2-map-components
Composer version
0.2.0
Default branch
main
Requirements
ext-pcre: *
magento/framework: ^103.0
magento/module-backend: ^102.0
magento/module-customer: ^103.0
loki/magento2-css-utils: ^1.0
loki/magento2-components: ^2.0
Releases
dev-main#b6f8f79d152182dd923bd5113949cd47f0ad69f9 20 October 2025
0.2.0 20 October 2025
0.1.10 20 October 2025
0.1.9 20 October 2025
0.1.8 20 October 2025
0.1.7 20 October 2025
0.1.6 20 October 2025
0.1.5 20 October 2025
0.1.4 20 October 2025
0.1.3 20 October 2025
0.1.2 20 October 2025
0.1.1 20 October 2025
0.1.0 20 October 2025
0.0.2 20 October 2025
0.0.1 20 October 2025
Changelog

[0.2.0] - 23 September 2025

Fixed

  • Implement new imageRenderer
  • Change XML layout container name
  • Only scroll into view if element exists
  • Move map store into loki.script.store

[0.1.10] - 17 September 2025

Fixed

  • Make MapViewModel non-abstract

[0.1.9] - 16 September 2025

Fixed

  • Allow saving data into session easily
  • Make sure to include templates in Tailwind config
  • Predefine Loki Components group loki-map-components

[0.1.8] - 04 September 2025

Fixed

  • Copy generic CI/CD files

[0.1.7] - 28 August 2025

Fixed

  • Add CI files
  • Replace yireo/opensearch with yireo/opensearch-dummy in Gitlab CI

[0.1.6] - 26 August 2025

Fixed

  • 048c0f7 Add GitLab CI files

[0.1.5] - 21 August 2025

Fixed

  • Replace LokiComponentsUtilBlockCssClass with LokiCssUtilsUtilCssClass
  • Declare used PHP namespaces
  • Add missing strict_types declaration

[0.1.4] - 18 August 2025

Fixed

  • Lower requirements to PHP 8.1
  • Rename tab in Store Config from "Yireo" to "Loki"
  • Add escaping to templates

[0.1.3] - 15 August 2025

Fixed

  • Move config from Yireo tab to Loki tab

[0.1.2] - 06 August 2025

Fixed

  • Lower PHP requirement to PHP 8.2+

[0.1.1] - 24 July 2025

Fixed

  • Rename jumpTo to jumpToMarker
  • Create separate store for markers and maps

[0.1.0] - 21 July 2025

Fixed

  • Rename PHP namespace from Yireo_Loki* to Loki*
  • Rename composer package from yireo/magento2-loki* to loki/magento2*

[0.0.2] - 08 July 2025

Fixed

  • Remove dep with LokiCheckout

[0.0.1] - 19 June 2025

Initial release

Jump to User Docs

Last modified: September 1, 2025