Browse files

Merge pull request #13 from oniram88/master

If there is no marker in the object i create it
  • Loading branch information...
2 parents 5bc87b6 + 836617d commit 7e46b4a8e7067a4f3734fb11f56c80c82076b19a @VinylFox committed Mar 12, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/GMapPanel3.js
View
7 src/GMapPanel3.js
@@ -450,6 +450,11 @@ markers: [{
this.geoCodeLookup(markers[i].geoCodeAddr, markers[i].marker, false, markers[i].setCenter, markers[i].listeners);
} else {
var mkr_point = new google.maps.LatLng(markers[i].lat, markers[i].lng);
+ if(typeof markers[i].marker=='undefined'){
+ markers[i].marker = new google.maps.Marker({
+ position: mkr_point
+ });
+ }
this.addMarker(mkr_point, markers[i].marker, false, markers[i].setCenter, markers[i].listeners);
}
}
@@ -750,4 +755,4 @@ buttons: [
});
return val;
}
-});
+});

0 comments on commit 7e46b4a

Please sign in to comment.