I'm trying to make a loop in which I create multiple markers for Google Maps. I want these markers to be named marker+int. I can't merge 2 variable names as I found out, so I need another way to do this. Can anyone help me out? I don't have an array to loop through...
var counter = 0;
for (var i = 0; i < localStorage.length; i++){
counter++;
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
icon: image,
shadow: shadow,
title: label
});
}