Hi,

Please find the link to my sample application as given below:
http://121.242.77.142/contextmenuproblem/Default.aspx

I am facing a problem in this site. My requirement is, I should be
able to show  "contextMenu" when user rt. clicks on the map and
contextMenuMarker when user rt. clicks on marker.

I am able to do this but there are some problems in it. After my map
gets loaded, if I rt. click on the map I get the "contextMenu"
displayed which is as per the requirement.

Now, when user rt. clicks on the marker for the first time, the same
"contextMenu" is displayed; which is wrong. Now, again, if user rt.
clicks on a marker, then the appropriate "contextMenuMarker" is
displayed.

But again if user rt. clicks on the map, it does not display
"contextMenu", but displays "contextMenuMarker", which is again wrong.

Can somebody please help me on this. I am not a very good expert of
JavaScript.

I guess, the problem might be with the lines
map.getContainer().appendChild(contextmenuMarker); (in
ContextMenuMarker.js) and
map.getContainer().appendChild(contextmenu); (in ContextMenuMap.js)

-- 
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.

Reply via email to