CopyPastor

Detecting plagiarism made easy.

Score: 1.9315252647125463; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2019-09-18
by Bhavik Kalariya

Original Post

Original - Posted on 2010-04-28
by AlexV



            
Present in both answers; Present only in the new answer; Present only in the old answer;

I've found out the solution! Thanks to Firebug ;)
//"markers" is an array that I declared which contains all the marker of the map //"i" is the index of the marker in the array that I want to trigger the OnClick event
//V2 version is: GEvent.trigger(markers[i], 'click'); //V3 version is: google.maps.event.trigger(markers[i], 'click');
OR
After much further research.
google.maps.event.addListener(map, 'click', function(event) { placeMarker(event.latLng); }); function placeMarker(location) { var marker = new google.maps.Marker({ position: location, map: map }); }
I've found out the solution! Thanks to Firebug ;)
//"markers" is an array that I declared which contains all the marker of the map //"i" is the index of the marker in the array that I want to trigger the OnClick event
//V2 version is: GEvent.trigger(markers[i], 'click'); //V3 version is: google.maps.event.trigger(markers[i], 'click');

        
Present in both answers; Present only in the new answer; Present only in the old answer;