[OpenLayers-Users] right-click support ?

Luis F Silva lfsilva at cps.pst.com.br
Mon Mar 24 18:25:34 EDT 2008


I don't know if I did understand well but , if the meaning is to detect 
right-clicks , I usually do:

map.events.register('click', map, function (e) { ... })
...
....
if (e.button == 2) {
 ....user clicked the right button....
...
....
} else ....
...
....

Hope this helps

Fernando.

 



Christopher Schmidt <crschmidt at metacarta.com> 
Sent by: users-bounces at openlayers.org
19/03/2008 14:08

To
users at openlayers.org
cc

Subject
Re: [OpenLayers-Users] right-click support ?






On Wed, Mar 19, 2008 at 05:35:48PM +0100, "R. Müller" wrote:
> Christopher Schmidt schrieb:
> > 
> > Every other map that I'm aware of messes with the user's settings by
> > making it such that right click does nothing. With that in mind, if an
> > application wants to do something with the right click button, that's
> > their business.
> > 
> > Regards,
> 
> imho this not a question of what other map-application do, but a
> question of general look&feel of a (web-)application. have a look at
> google-maps or google-docs, they make extensive use of right-click
> context menus.

Er, you thought this paragraph was responding to you, when in fact it
was responding to someone who was disagreeing with you :) 

> i'm not calling for detailed features for right-click events, but for
> principal support. at the moment, you can register event-listeners for
> mouse clicks e.g. this way :
> 
> map.events.register('click', map, function (e) { ... })
> 
> but this only listens to left-clicks :-(. 

What makes you say this? I don't believe it to be true. (I can't
confirm, because I don't have a mouse with a right click.)

Regards,
-- 
Christopher Schmidt
MetaCarta
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users

*************************************************************************
Esta mensagem, incluindo os seus anexos, contém informações confidenciais 
destinadas a indivíduo e propósito específicos, e é protegida por lei. 
Caso você não seja o citado indivíduo, deve apagar esta mensagem. É 
terminantemente proibida a utilização, acesso, cópia ou divulgação não 
autorizada das informações presentes nesta mensagem.  As informações 
contidas nesta mensagem e em seus anexos são de responsabilidade de seu 
autor, não representando idéias, opiniões, pensamentos ou qualquer forma 
de posicionamento por parte da PST Indústria  Eletrônica da Amazônia Ltda. 


The information contained in this communication is confidential, is law 
protected, and is intended only for the business use of the addressee. If 
you have received this communication in error, please immediately delete 
it. It's forbidden the unauthorized use, access, copy or disclose of the 
information contained in this communication.  The content of this message 
is responsibility of the author, and does not represent ideas, opinions, 
thoughts or any kind of statement of PST Indústria  Eletrônica da Amazônia 
Ltda.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080324/a0b3b4d9/attachment.html


More information about the Users mailing list