I just noticed, right clicking on an existing marker creates only one
marker. Right clicking on the zoom buttons has no effect.
On Oct 10, 12:03 am, cosmixy <[EMAIL PROTECTED]> wrote:
> Sorry about that, the data error was caused from the previous change
> and has been fixed. The six markers you see are read from the
> spreadsheet when the map is opened and have nothing to do with event
> listeners.
>
> There is only one listener and it is in the load() function.
>
> markerListener = GEvent.addListener(cm_map, "singlerightclick",
> function(point, src, overlay) {
> var latlng = cm_map.fromContainerPixelToLatLng(point);
> var marker = cm_createMarker("", "", "", latlng, "", 0, true);
> cm_map.addOverlay(marker);
> cm_mapMarkers.push(marker);
> cm_mapHTMLS.push("");
>
> If you are talking about the addDomListener those are for the
> navigation buttons, four of which are commented out. See the two zoom
> buttons.
>
> On Oct 9, 11:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > On Oct 9, 10:58 pm, cosmixy <[EMAIL PROTECTED]> wrote:
>
> > > User input was disabled for anonymous users. I've just enabled it for
> > > everybody for the sake of testing. The purpose is to track the added
> > > markers by user but they aren't currently being saved to the
> > > spreadsheet anyway.
> > > Right click should at least do something now if you don't log in.
>
> > Now I get an error (in IE6) 'data' is undefined. (actually I get 2 of
> > them...)
> > Your event listener must be firing twice. Actually it looks like you
> > are adding a _map_ singlerightclick event listener for every marker.
> > I'm surprised you don't get 6 markers added for every click (since I
> > see 6 markers). You probably only want to have one _map_
> > singlerightclick listener, then put code in it to handle all the
> > possibilities (if the click is on a marker, you should get a reference
> > to that marker in the overlay argument, however, when I get the error
> > (I didn't click on a marker), I seem to get a reference to the map
> > container div (map_canvas). The only thing that makes sense is the
> > point argument...
>
> > If I right click on a marker I do get what seems to be a reference to
> > the marker (and I get 3 errors).
>
> > -- Larry
>
> > > If you want to anyway you can use still register, it is just a name and
> > > pass but you'll need to delete the cookie to logout =O
>
> > > On Oct 9, 6:50 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > On Oct 9, 6:28 pm, cosmixy <[EMAIL PROTECTED]> wrote:> The user right
> > > > clicks to add a marker but two are made instead of one.
> > > > > The markers loaded from the spreadsheet are not being doubled up like
> > > > > this(confirmed by making them draggable). I've used 'dblclick' also
> > > > > with the same effect as 'singlerightclick'
>
> > > > > I'm sure it is something simple I missed but can't find it...
>
> > > >http://cosmixy.info/dfmap/map_register.htm
> > > > requires registration...
>
> > > >http://cosmixy.info/dfmap/index.html
> > > > nothing happens when I right click (in Chrome).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---