From 80a5b2b6bee9f50af886706a6385b26147f923d3 Mon Sep 17 00:00:00 2001 From: marcioalthmann Date: Sat, 28 Jan 2012 23:06:30 -0200 Subject: [PATCH] Create method createMarkers to facilitate the creation of n markers --- js/jquery.gomap-1.3.2.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/jquery.gomap-1.3.2.js b/js/jquery.gomap-1.3.2.js index 8bf0cb5..cdf31bb 100644 --- a/js/jquery.gomap-1.3.2.js +++ b/js/jquery.gomap-1.3.2.js @@ -710,6 +710,12 @@ return this.getMarkers('visiblesInBounds'); }, + createMarkers: function(markers){ + for (var i = 0; i < markers.length; i++) { + $.goMap.createMarker(markers[i]); + } + }, + createMarker: function(marker) { if (!marker.geocode) { this.count++;