victormlima98 / leaflet-plugin
Leaflet plugin for October CMS
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 5
Language:JavaScript
Type:october-plugin
Requires
- php: >=7.2
- composer/installers: ~1.0
This package is not auto-updated.
Last update: 2025-07-31 09:10:49 UTC
README
Introduction
Leaflet is "an open-source JavaScript library for mobile-friendly interactive maps"
Supported
- Map
- Provider:
- Open Street Maps
- Mapbox
- Layers:
- Marker
- Circle
- Polygon
- Popups
Example
This example is build on quick start example from leaflet.
Open Street Maps
No configuration needed, continue with create a new map.
Mapbox
- You require an Mapbox account.
- Navigate to Classic -> Mapbox Editor Projects
- Create a new Mapbox Editor project
- After you choose the style, save the project
- In the projects overview, you'll see your project id, that is required later
- You also need an API access token. You can find it under Account -> API access token
Create a new map
- Navigate to Maps, in Octobercms backend.
- Create a new map
- Insert a name and copy and paste your Mapbox project id and your API access token.
- After that you can add objects at the buttom.
- Possible parameters for objects can be found on Leaflet documentation.
Display map
- Open a cms page
- Add map component
- Select the map, that you want to display and set the properties.
- Include the
{% component 'map' %}
in the cms page.