query.php to map.php