Contao-Camp 2024
Ergebnis 1 bis 16 von 16

Thema: Google Maps in Contao 4

  1. #1
    Contao-Nutzer
    Registriert seit
    09.09.2016.
    Beiträge
    2

    Standard Google Maps in Contao 4

    Hallo zusammen

    Ich bin gerade daran eine Webseite mit Contao 4 zu erstellen. Unter anderem auf der Kontaktseite möchte ich eine Google Map anzeigen.
    Die Extension konnte ich runterladen und installieren.

    Jetzt habe ich aber das Problem, dass bei der Erstellung der Karte eine Fehlermeldung erscheint.
    Und zwar erkennt es die Formate für die Anzeigemasse nicht, egal ob px, pcnt oder em angewählt ist. Es steht "Ein Fehler ist aufgetreten. Ungültige Auswahl: em"

    Gibt es dafür irgendeine Lösung? Hat schon einmal jemand in Contao 4 Google Maps benutzt?

    Liebe Grüsse
    Marina

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.059
    Partner-ID
    10107

    Standard

    Installiere die Extension lieber über Composer - sollte in diesem Fall funktionieren.

  3. #3
    Contao-Nutzer
    Registriert seit
    09.09.2016.
    Beiträge
    2

    Standard

    Zitat Zitat von Spooky Beitrag anzeigen
    Installiere die Extension lieber über Composer - sollte in diesem Fall funktionieren.
    Danke für deine Antwort.

    Man kann doch sowieso die Extensions nur über Composer installieren oder?
    Ich habe sie jetzt mal deinstalliert und neu installiert, es funktioniert aber immer noch nicht.

  4. #4
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.059
    Partner-ID
    10107

    Standard

    Dann war diese Aussage verwirrend:
    Zitat Zitat von HuMa94 Beitrag anzeigen
    Die Extension konnte ich runterladen und installieren.


    Poste das Problem als Issue auf GitHub.

  5. #5
    Contao-Nutzer
    Registriert seit
    24.06.2010.
    Ort
    Arnsberg
    Beiträge
    78

    Standard

    Gibt bei mir Fehler bei der Installation via Composer. Kann vielleicht einmal jemand posten, wie man das richtig macht? Danke!

  6. #6
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.059
    Partner-ID
    10107

    Standard

    Was für einen Fehler?

  7. #7
    Contao-Nutzer
    Registriert seit
    24.06.2010.
    Ort
    Arnsberg
    Beiträge
    78

    Standard

    Hi,
    nach Eingabe von ...:/html > composer require delahaye/dlh_googlemaps bekomm ich folgendes:


    PHP-Code:
    p403547:/html composer require delahaye/dlh_googlemaps
    Warning
    This development build of composer is over 60 days oldIt is recommended to update it by running "/files/swm2/composer/composer.phar self-update" to get the latest version.
    Using version ^2.2 for delahaye/dlh_googlemaps
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies 
    (including require-dev)
    Your requirements could not be resolved to an installable set of packages.

      
    Problem 1
        
    Installation request for delahaye/dlh_googlemaps ^2.2 -> satisfiable by delahaye/dlh_googlemaps[2.2.0].
        - 
    Conclusionremove contao/calendar-bundle 4.3.7
        
    Conclusiondon't install contao/calendar-bundle 4.3.7
        - delahaye/dlh_googlemaps 2.2.0 requires contao/core >=3.2,<5 -> satisfiable by contao/core[3.2.0, 3.2.1, 3.2.10, 3.2.11, 3.2.12, 3.2.13, 3.2.14, 3.2.15, 3.2.16, 3.2.17, 3.2.18, 3.2.19, 3.2.2, 3.2.20, 3.2.21, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.3.5, 3.3.6, 3.3.7, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.4.5, 3.5.0, 3.5.1, 3.5.10, 3.5.11, 3.5.12, 3.5.13, 3.5.14, 3.5.15, 3.5.16, 3.5.17, 3.5.18, 3.5.19, 3.5.2, 3.5.20, 3.5.21, 3.5.22, 3.5.23, 3.5.24, 3.5.25, 3.5.3, 3.5.4, 3.5.5, 3.5.6, 3.5.7, 3.5.8, 3.5.9].
        - contao/core 3.2.0 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.1 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.10 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.11 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.12 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.13 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.14 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.15 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.16 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.17 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.18 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.19 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.2 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.20 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.21 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.3 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.4 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.5 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.6 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.7 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.8 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.2.9 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.3.0 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.3.1 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.3.2 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.3.3 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.3.4 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.3.5 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.3.6 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.3.7 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.4.0 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.4.1 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.4.2 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.4.3 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.4.4 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.4.5 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.0 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.1 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.10 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.11 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.12 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.13 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.14 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.15 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.16 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.17 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.18 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.19 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.2 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.20 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.21 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.22 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.23 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.24 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.25 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.3 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.4 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.5 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.6 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.7 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.8 conflicts with contao/calendar-bundle[4.3.7].
        - contao/core 3.5.9 conflicts with contao/calendar-bundle[4.3.7].
        - Installation request for contao/calendar-bundle == 4.3.7.0 -> satisfiable by contao/calendar-bundle[4.3.7].


    Installation failed, reverting ./composer.json to its original content. 

  8. #8
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.059
    Partner-ID
    10107

    Standard

    Die Extension wurde nicht wirklich bzw. nur falsch für Contao 4 freigegeben, daher kannst du sie auch nicht auf diesem Weg installieren. Siehe https://github.com/delahaye/dlh_googlemaps/pull/73

  9. #9
    Contao-Nutzer
    Registriert seit
    24.06.2010.
    Ort
    Arnsberg
    Beiträge
    78

    Standard

    Danke Dir Spooky für die Info! Gibt es eine Alternative zu der Extension? Das heisst Contao 4 ohne Google Maps - undenkbar!
    Lg Martin

  10. #10
    Contao-Fan Avatar von mapfei
    Registriert seit
    11.05.2010.
    Ort
    Much
    Beiträge
    692

    Standard

    Gibt es für das Problem (Anlegen der Map - speichern nicht möglich) inzwischen einen Fix?
    Viele Grüße, Markus
    --------------------------------
    Markus Pfeifer – Digital Designer & -Developer

  11. #11
    Contao-Nutzer Avatar von rory_ch
    Registriert seit
    11.05.2016.
    Ort
    Schweiz
    Beiträge
    119

    Standard Stand

    Das Problem scheint immer noch zu bestehen.
    Gibt es da schon ein Update?

    Es müsste ja mit dem eval im DCA des ImageSize zusammenhängen oder?

    Gruss

  12. #12
    mpietsch
    Gast

    Standard

    Zitat Zitat von rory_ch Beitrag anzeigen
    Das Problem scheint immer noch zu bestehen.
    Beobachte es auch noch in Contao 4.4.0 bei dlh_googlemaps 2.2.0 nach manuellem Update (Dateien kopiert).

  13. #13
    mpietsch
    Gast

    Standard

    Gelesen in anderem Thema:

    "Heimrich & Hannot GmbH hat die Erweiterung geforkt und dann für Contao 4.4 freigeben, den Fork kann man über den Contao Manager installieren"

    Noch nicht getestet.

  14. #14
    Contao-Fan Avatar von Webstylerin
    Registriert seit
    24.08.2009.
    Ort
    Schlüsselfeld, Bayern
    Beiträge
    403
    Partner-ID
    6232
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Zitat Zitat von mpietsch Beitrag anzeigen
    Gelesen in anderem Thema:

    "Heimrich & Hannot GmbH hat die Erweiterung geforkt und dann für Contao 4.4 freigeben, den Fork kann man über den Contao Manager installieren"

    Noch nicht getestet.
    Es gibt mittlerweile ein Update für die Originalversion:

    Zitat Zitat von christian Beitrag anzeigen
    Ich weiss, ich war 'verschollen' (das ganze letzte Jahr war sehr spannend), aber es gibt jetzt eine neue Version. Habe auch eben einen passenden Post hier im Forum hinterlassen. Etliche Änderungen aus der heimrichhannot-Variante habe ich einfließen lassen (danke dafür) und auch die Versionsnummer so angepasst , dass die mit diesem Fork in Reihe bleiben.
    Quelle: Dieser Post

  15. #15
    mpietsch
    Gast

    Standard

    Zitat Zitat von Webstylerin Beitrag anzeigen
    Ah, danke! War mir entgangen...

  16. #16
    Contao-Nutzer
    Registriert seit
    24.04.2018.
    Beiträge
    107

    Standard

    Hi,
    ich habe Contao 4.4 und auch das delahaye/dlh_googlemaps installiert. Da es im Contao-Manager sichtbar war gehe ich davon aus, dass es kompatibel ist. Ich kann im Backend auch alles anklicken, eine Karte erstellen mit dem Zielpunkt und bei System/Einstellungen und im Seitenstartpunkt den Api Key eingeben.
    Auf der Webseite wird die Karte allerdings nicht geladen. Konsole sagt ("kein API Key"). Nach verzweifelten suchen wurde dann spekuliert, dass das was mit google api v2 und v3 zu tun hat und es wurde ein neuer Key generiert. Nun kommt die Fehlermeldung (google is not defined). Das ist üblicherweise das Problem wenn das Script snippet <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY></script> fehlt.
    Hilfe zur Anwendung?

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •