I'm trying to figure out how to load more information while zooming out of a page. I a "map" on my site that displays information from a database. it's currently grabbing the stuff from the DB like this:
$sql = "SELECT X, Y from mapCoords WHERE X = :pageX AND Y = :pageY"
$que = $db->prepare($sql);
$que->bindParam('pageX', $_GET['x'])
$que->bindParam('pageY', $_GET['y']);
try{ $que->execute();
while($row = $que->fetch(PDO::FETCH_BOTH))
{
echo "<div id='mapStuff' style="top: {$row[0]}%; left: {$row[1]}%"> </div>';
}
}catch(PDOException $e){}
I would like to have it so, when the user zooms out of the page, more information appears. I've found tutorials on 'scroll loading' but nothing relevant to the zooming of a page.