se the normal js methods
>
> On 6 Jun., 23:35, a jay wrote:
> > hi, i am trying to limit the marker to add only two markers to a map on
> > click event
> > i wrote an event listener and added the following code to it:
> >
> > GEvent.addListen
hi, i am trying to limit the marker to add only two markers to a map on
click event
i wrote an event listener and added the following code to it:
GEvent.addListener(map, 'click', function (overlay, latlng) {
if (placeMarker.length < 2) {
pendingLatLng = latlng
I added a click listener event that places a marker on a map, the problem is
that every dblclick places a marker as well.
how do i solve that ?
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web
Hi guys, i am trying to draw a marker on a map
i added a click event listener but for some reason i can get the marker to
display
below is the code i am using.
function initialize() {
var latlng = new google.maps.LatLng(39.10, -93.43);
var myOptions = {
zoom: 4,