Skip to content

Usage in dlh_googlemap #251

Answered by doishub
githuppi asked this question in Q&A
Discussion options

You must be logged in to vote

In einer der dlh-Erweiterungen wird im Template die API über folgende Zeile im HEAD platziert:

$GLOBALS['TL_JAVASCRIPT'][] = 'https://maps.googleapis.com/maps/api/js?key=' . $this->map['key'] . '&language=' . $this->map['language'];

Diese müsste aus kommentiert und erst geladen werden, sofern der Cookie akzeptiert wurde:

- $GLOBALS['TL_JAVASCRIPT'][] = 'https://maps.googleapis.com/maps/api/js?key=' . $this->map['key'] . '&language=' . $this->map['language'];

Initialisieren der Karte mit Berücksichtigung der akzeptierten Services:

- if(cookiebar.issetCookie(cookieId)){
-    if(window.addEvent) {
-        window.addEvent('domready', function() {
-            gmap<?= $this->map['id']; ?>_ini…

Replies: 14 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zoglo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
not a bug not a bug
4 participants
Converted from issue

This discussion was converted from issue #17 on January 08, 2025 16:51.