Re: [Google Maps API v3] Re: Limit number of markers on a map

2011-06-06 Thread a jay
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

[Google Maps API v3] Limit number of markers on a map

2011-06-06 Thread a jay
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

[Google Maps API v3] click and dblick events

2011-06-04 Thread a jay
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

[Google Maps API v3] newbie question, add marker on click event

2011-06-03 Thread a jay
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,