Download the PHP package mandrael/contao-maplibre without Composer

On this page you can find all versions of the php package mandrael/contao-maplibre. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package contao-maplibre

Deutsch | English

Contao MapLibre

Datenschutzfreundliche Karten für Contao mit MapLibre GL JS und OpenFreeMap (Vektor-Tiles auf Basis von OpenMapTiles / OpenStreetMap) – ein direkter Ersatz für Google Maps. Mit Multi-Marker, Cluster-Markern, zentraler Standortverwaltung und automatischem Geocoding (Adresse → Koordinaten via Nominatim).

Eine gemeinsame Codebasis für die drei Contao-LTS-Versionen 4.13, 5.3 und 5.7 (inkl. 5.4–5.6).


Funktionsumfang

Datenschutz

Die Kartendarstellung im Frontend bindet keine Google-Dienste ein. Die Tiles kommen von OpenFreeMap, MapLibre GL JS von unpkg. Es findet kein Tracking statt. Geocoding läuft ausschließlich im Backend beim Speichern (nicht im Frontend), die Koordinaten werden gecacht. Einzige Ausnahme: Der optionale KML-Import bestehender „Google My Maps"-Karten ruft dafür einmalig www.google.com ab.

Installation

Alternativ über den Contao Manager nach mandrael/contao-maplibre suchen, hinzufügen und die Datenbank aktualisieren.

Verwendung

1. Standorte anlegen

Im Backend unter Inhalte → MapLibre Standorte einen Standort anlegen: Titel, Adresse (Straße, PLZ, Ort, optional Land) und eine Kategorie (z. B. „Kursorte"). Beim Speichern werden die Koordinaten automatisch aus der Adresse ermittelt (Nominatim) und gespeichert.

2. Karte einfügen

Im Artikel ein Inhaltselement vom Typ MapLibre Karte hinzufügen und die Marker-Quelle wählen:

Darstellungs-Optionen: Kartenstil, Höhe, Markerfarbe, Standard-Symbol (Gruppe), Cluster an/aus, „sofort interaktiv". Ausschnitt: „alle Marker automatisch einpassen" (fitBounds) oder fester Mittelpunkt + Zoomstufe.

Standardmäßig scrollt die Seite durch die Karte hindurch (Mausrad-Zoom erst nach einem Klick in die Karte – wie auf der Vorlage). Die Option „Karte sofort interaktiv" lässt die Karte das Mausrad-Scrollen ohne Klick übernehmen (und fängt damit das Seiten-Scrollen ab).

Marker-Symbole

Jeder Marker wird als farbiger Pin (Markerfarbe) mit weißem Icon-Glyph dargestellt – wie bei Google My Maps. Das Symbol wird in dieser Reihenfolge bestimmt: eigenes SVG des Standorts › gewähltes Symbol des Standorts › Gruppen-Standardsymbol des Karten-Elements › schlichter Pin ohne Symbol.

3. Bestehende Google-My-Maps-Karte importieren

Die mid steht in der Embed-/Teilen-URL der Google-My-Maps-Karte (https://www.google.com/maps/d/embed?mid=<mid>). Die enthaltenen Marker (Name + Koordinaten) werden als Standorte der angegebenen Kategorie angelegt. Adressen kannst du anschließend im Backend ergänzen.

Content Security Policy (CSP)

Nutzt die Seite eine CSP, müssen folgende Quellen erlaubt sein:

Auf Contao 5.x werden diese Quellen automatisch in die Seiten-CSP eingetragen, sofern die Seite eine CSP gesetzt hat. Auf Contao 4.13 sind sie ggf. manuell zu ergänzen.

Wiederverwendung in eigenen Bundles

Die Karte lässt sich programmatisch erzeugen – z. B. aus einem eigenen Katalog-/Personen-Bundle:

$renderer ist der Service Mandrael\ContaoMaplibreBundle\Map\MaplibreRenderer (autowire-fähig).

Kompatibilität

Attribution

Die geforderte Quellenangabe „MapLibre | OpenFreeMap © OpenMapTiles Data from OpenStreetMap" wird vom OpenFreeMap-Stil automatisch in der Karte angezeigt.

Mitgelieferte Icons

Das Symbol-Set unter public/icons/ stammt aus Maki von Mapbox und steht unter CC0 1.0 (Public Domain). Eine Attribution ist nicht erforderlich.

Lizenz

MIT – siehe LICENSE. Mitgelieferte Maki-Icons: CC0 1.0.


All versions of contao-maplibre with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
contao/core-bundle Version ^4.13 || ^5.3
doctrine/dbal Version ^3.6 || ^4.0
psr/log Version ^1.0 || ^2.0 || ^3.0
symfony/config Version ^5.4 || ^6.4 || ^7.0
symfony/console Version ^5.4 || ^6.4 || ^7.0
symfony/dependency-injection Version ^5.4 || ^6.4 || ^7.0
symfony/http-client Version ^5.4 || ^6.4 || ^7.0
symfony/http-kernel Version ^5.4 || ^6.4 || ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mandrael/contao-maplibre contains the following files

Loading the files please wait ...