dear sir,
i write down this code to have a menu in my web map:
ContextMenu menuOnMap = new ContextMenu("area", 180);
ContextMenuItem newGF = new ContextMenuItem("<DIV onclick=funcname();>Add GF</DIV>"</font></font><font size="2">);</font>
menuOnMap.MenuItems.Add(newGF);
Map1.ContextMenu = menuOnMap;
which work fine, but i have to problems:
1- in the function (funcname) i want to read user clicked lon and lat in map, what i have now is the code to read it onclick event for the map (left click) not the right one which generate the menu.
2- i want the menu to render in the same click place not in map center all the time.
thanks.