I'm pretty new to google maps so please be patient!
My code was working fine untill i tried to add multiple markers, would really appreciate it if anyone could glance at it and see if i'm missing something...
$(function() {
var map_markers = [ [ [52.951946], [1.018124] ], [ [52.955311], [0.987997] ] ];
var options = {
zoom: 13,
center: latlng,
mapTypeControl: false,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById('map_canvas'), options);
//markers
for (var i = 0; i < map_markers.length; i++) {
var m = map_markers[i];
var myLatLng = new google.maps.LatLng(m[0], m[1]);
var marker = new google.maps.Marker({
position: myLatLng,
map: map
});
}
})