C:\xampp\php\tests\kohana22\modules\gmaps\javascript.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
google.load("maps", "2.x", {"language" : "<?php echo substr(Kohana::config('locale.language.0'), 02);?>"});
function initialize() {
    if (GBrowserIsCompatible()) {
        // Initialize the GMap
        <?php echo $map"\n" ?>
        <?php echo $controls"\n" ?>
        <?php echo $center"\n" ?>
        <?php echo $options->render(1), "\n" ?>

    // Build custom marker icons
    <?php foreach($icons as $icon): ?>
    <?php echo $icon->render(1), "\n" ?>
    <?php endforeach ?>

        // Show map points
        <?php foreach($markers as $marker): ?>
        <?php echo $marker->render(1), "\n" ?>
        <?php endforeach ?>
    }
}
google.setOnLoadCallback(initialize);
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586