Heya-

I put together a demo to show this, as I know it may seem a bit tricky:

http://code.google.com/apis/maps/documentation/flash/demogallery.html?searchquery=context&classname=

- pamela

On Tue, Oct 7, 2008 at 4:26 PM, pamela (Google Employee)
<[EMAIL PROTECTED]> wrote:
> Hi folks-
>
> It is currently possible to add to the context menu of the map by
> setting the contextMenu property of the map component. I'm pasting
> some code which just adds two items to the menu:
> var _Menu:ContextMenu = new ContextMenu();
>
> var _MenuItem1:ContextMenuItem = new ContextMenuItem('Menu 1');;
> var _MenuItem2:ContextMenuItem = new ContextMenuItem('Menu 2');;
>
> _Menu.customItems.push(_MenuItem1);
> _Menu.customItems.push(_MenuItem2);
>
> this.map.contextMenu = _Menu;
>
> You could assign listeners to those items to do stuff like add markers
> or set the view of the map.
>
> Let me know what questions you still have.
>
> - pamela
>
> On Mon, Oct 6, 2008 at 10:20 PM, Megharaja <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> Even am also have the same requirement.
>>
>> So i have created context menu in flex then i will click on the map to
>> get the geocode.Finally i created marker on that place.
>>
>> Is it possible to create the marker by right clicking on the map.
>>
>>
>> Thanks,
>> Megharaja S.H.
>>
>> On Oct 6, 5:52 pm, Jash <[EMAIL PROTECTED]> wrote:
>>> Hi
>>>
>>> Is there anyway that i can get Flex context menu to be shown on right
>>> click on marker or Map.
>>> When i saw the API there seems to be no event for MouseRightClick. Can
>>> this feature be added .There are many occassions when one would like
>>> to have a rightclick working on marker or map.
>>>
>>> Currently i have added 2 event listeners for markers. One for click
>>> event and other for Double Click.
>>> When i do a click i show infowindow and on double click showin a menu.
>>> But when i double click what happens is the infowindow alos gets open
>>> and the menu also gets open.
>>>
>>> How do we come over this. Also the menu stays open unless i don't
>>> click any item inside it, What if user wants to click elsewhere on map
>>> and the menu should close.
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to