[OpenMap Users] Multiple layers with popup menus problem.

From: <jon.peters_at_generaldynamics.uk.com>
Date: Tue, 13 Mar 2007 18:14:30 -0000

Hi All,
I've have a base ShapeLayer which has been overridden such that a right
click will display my applications menu (as I don't have a menubar).
This layer displays the basic countries shape file and has
getItemsForOMGraphicMenu(...) and getItemsForMapMenu(...) overridden so
I get the popup menu on both land and sea.
I also have a 'higher' layer which displays some OMGraphics. I've
overridden the getItemsForOMGraphicMenu(...) method in this layer to
display a popup menu for the graphic.
My problem is that the 2 layers won't work together. Right clicking
displays the lowest (in layer order terms) menu it can find.
As a test I removed the getItemsForOMGraphicMenu method from the base
layer and had my graphic layer draw a filled poly which covered both
land and sea. If I right click on the poly over the sea I will get the
base layer's popup menu and right clicking on the poly over land will
display the graphic layer's popup menu.
How do I make my graphics display the correct popup ?

This email and any files attached are intended for the addressee and may contain information of a confidential nature. If you are not the intended recipient, be aware that this email was sent to you in error and you should not disclose, distribute, print, copy or make other use of this email or its attachments. Such actions, in fact, may be unlawful. In compliance with the various Regulations and Acts, General Dynamics United Kingdom Limited reserves the right to monitor (and examine for viruses) all emails and email attachments, both inbound and outbound. Email communications and their attachments may not be secure or error- or virus-free and the company does not accept liability or responsibility for such matters or the consequences thereof. General Dynamics United Kingdom Limited, Registered Office: 100 New Bridge Street, London EC4V 6JA. Registered in England and Wales No: 1911653.

[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Mar 13 2007 - 14:22:31 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT