Use an array for this.
var markers = [];
for (var i = 0; i < coords.length; ++i) {
markers[i] = "some stuff";
}
More Related Contents:
- Google Maps Display:None Problem
- Open infoWindows from an external link outside of the google map
- Google Place API – No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘null’ is therefore not allowed access [duplicate]
- Animating Multiple Markers
- Looping through Markers with Google Maps API v3 Problem
- How to add the background css into this jQuery? [duplicate]
- When to use Vanilla JavaScript vs. jQuery?
- Access Control Request Headers, is added to header in AJAX request with jQuery
- How to populate a cascading Dropdown with JQuery
- Difference between HTMLCollection, NodeLists, and arrays of objects
- JavaScript/jQuery to download file via POST with JSON data
- Merge 2 arrays of objects
- How do you remove all the options of a select box and then add one option and select it with jQuery?
- Parse an URL in JavaScript
- get wrong value in data attribute jquery
- Dropdown select with images
- How to find a parent with a known class in jQuery?
- jQuery count child elements
- Generic way to detect if html form is edited
- How to create a simple map using JavaScript/JQuery [duplicate]
- Click events on Pie Charts in Chart.js
- Using PUT/POST/DELETE with JSONP and jQuery
- how to move a div with arrow keys
- Event capturing jQuery
- Bootstrap Dropdown with Hover
- jquery-ui-dialog – How to hook into dialog close event
- How to implement hierarchical multilevel datatable in javaScript?
- How to select empty inputs (value=””) using jQuery
- jQuery uses (new Function(“return ” + data))(); instead of eval(data); to parse JSON, why?
- How to get html source code from external url