Skip to main content
Version: next

Leaflet

This extension allow you to use Leaflet to display maps in your Front-Commerce store.

Installation

Install the @front-commerce/leaflet package:

pnpm add @front-commerce/leaflet

Add the Leaflet extension to your front-commerce.config.ts:

front-commerce.config.ts
//...
import leaflet from "@front-commerce/leaflet";

export default defineConfig({
extensions: [
// ...
leaflet(),
],
//...
});

Leaflet map components should now be ready to be used in your application!

Next steps