Skip to content

Instantly share code, notes, and snippets.

View MatthewRewired's full-sized avatar

MatthewRewired

View GitHub Profile
@MatthewRewired
MatthewRewired / map.php
Created December 28, 2013 20:41
Ok I have a load of variables stored in external mapData.php file (which will eventually be a database) which seem to be loading in and populating the contentstring, lat/lng for map marker just fine, but I want the project to be scalable. So I need variables to be dynamic based on the amount of sets in the database. Every time round the loop it …
<?php
require 'includes/mapData.php';
?>
var map;
var living1 = new google.maps.LatLng(37.3333, -121.9000);
var MY_MAPTYPE_ID = 'custom_style';