[Spanish] FW: Control Click en Markers OL

Antonio Santiago asantiagop at gmail.com
Fri Nov 25 11:22:13 EST 2011


Creo que este ejemplo te puede servir:
http://openlayers.org/dev/examples/markers.html

Basta con cambiar el evento de mosuedown a click
     marker.events.register('click', marker, function(evt) {
                    console.log(this.icon.url);
                    OpenLayers.Event.stop(evt);
                });

Saludos.


2011/11/25 Gustavo Jarrín <gusjarrin at hotmail.com>

>  Hay alguien ahi?
>
> Alguna sugerencia?
>
> Gracias
>
> Gustavo
>
> ------------------------------
> From: gusjarrin at hotmail.com
> To: spanish at lists.osgeo.org
> Subject: Control Click en Markers OL
> Date: Thu, 24 Nov 2011 10:07:20 -0600
>
>
>  Saludos lista,
>
> Es posible agregar el Control.Click a una marca (markers)???? como??
>
> No el evento "mousedown" ya que este se activa tanto para el evento click
> y dobleclick. Yo necesito diferenciarlos para q click abra el popup y
> dobleclick haga zoomin.
>
> Mil garcias x cualquier ayuda.
>
> Gustavo
>
> _______________________________________________
> Spanish mailing list
> http://lists.osgeo.org/mailman/listinfo/spanish
> http://es.osgeo.org
> http://twitter.com/osgeoes
>
>


-- 
|----------------------------------------------------------------
| Web Page: http://www.acuriousanimal.com
| Blog: http://www.acuriousanimal.com/blog
| Twitter: @acanimal <http://twitter.com/#%21/acanimal>
|----------------------------------------------------------------
| A crazy mix site: http://www.astracanada.net
| Old Virtual Globe project:http://theballoonproject.blogspot.com
|----------------------------------------------------------------
|   _      __
|  /_)    (_ ` _   _  _)_ o  _   _   _
| / /  o .__) (_( ) ) (_  ( (_( (_( (_)
|                                 _)
|----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/spanish/attachments/20111125/8d9ccce3/attachment-0001.html


More information about the Spanish mailing list