Beispiel #1
0
function makeLocArray()
{
    $lat = getLat();
    $lon = getLong();
    $loc = array("latitude" => $lat, "longitude" => $lon);
    return $loc;
}
            return "blue-dot";
            break;
        default:
            return "red-dot";
            break;
    }
}
//POSICIONES GENERALES
for ($i = 1; $i < 5; $i++) {
    ?>
  id=<?php 
    printf($i);
    ?>
;
  positionsGeneral[id] = new google.maps.LatLng(<?php 
    printf('%s,%s', getLat($i), getLng($i));
    ?>
);
  markersGeneral[id] = new google.maps.Marker({
    position: positionsGeneral[id],
    title: 'Punto <?php 
    echo nombre($i);
    ?>
',
    map: map,
    draggable: true,
    icon: 'http://www.google.com/intl/en_us/mapfiles/ms/micons/<?php 
    printf(ico($i));
    ?>
.png'
  });
Beispiel #3
0
//Didsbury
$latitudeDidsbury = getLat("Cineworld Didsbury", $dbc);
$longitudeDidsbury = getLong("Cineworld Didsbury", $dbc);
//AMC
$latitudeAMC = getLat("AMC Manchester", $dbc);
$longitudeAMC = getLong("AMC Manchester", $dbc);
//Showcase
$latitudeShowcase = getLat("Showcase Manchester", $dbc);
$longitudeShowcase = getLong("Showcase Manchester", $dbc);
//Lowry
$latitudeLowry = getLat("Vue Manchester Lowry", $dbc);
$longitudeLowry = getLong("Vue Manchester Lowry", $dbc);
//Trafford
$latitudeTrafford = getLat("Odeon Trafford Centre", $dbc);
$longitudeTrafford = getLong("Odeon Trafford Centre", $dbc);
//Bolton
$latitudeBolton = getLat("Vue Bolton", $dbc);
$longitudeBolton = getLong("Vue Bolton", $dbc);
//Wigan
$latitudeWigan = getLat("Empire Cinemas Wigan", $dbc);
$longitudeWigan = getLong("Empire Cinemas Wigan", $dbc);
//Stockport
$latitudeStockport = getLat("Cineworld Stockport", $dbc);
$longitudeStockport = getLong("Cineworld Stockport", $dbc);
//Rochdale
$latitudeRochdale = getLat("Odeon Rochdale", $dbc);
$longitudeRochdale = getLong("Odeon Rochdale", $dbc);
//Altrincham
$latitudeAltrincham = getLat("Vue Altrincham", $dbc);
$longitudeAltrincham = getLong("Vue Altrincham", $dbc);
mysqli_close($dbc);