Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
google.load("maps", "2.x", {"language" : "<?php echo substr(Kohana::config('locale.language.0'), 0, 2);?>"});
2
function initialize() {
3
    if (GBrowserIsCompatible()) {
4
        // Initialize the GMap
5
        <?php echo $map, "\n" ?>
6
        <?php echo $controls, "\n" ?>
7
        <?php echo $center, "\n" ?>
8
        <?php echo $options->render(1), "\n" ?>
9
 
10
    // Build custom marker icons
11
    <?php foreach($icons as $icon): ?>
12
    <?php echo $icon->render(1), "\n" ?>
13
    <?php endforeach ?>
14
 
15
        // Show map points
16
        <?php foreach($markers as $marker): ?>
17
        <?php echo $marker->render(1), "\n" ?>
18
        <?php endforeach ?>
19
    }
20
}
21
google.setOnLoadCallback(initialize);