[OpenLayers-Users] Register function callback click on map

Luca Santaniello lsantaniello at cidsoftware.it
Thu Mar 10 10:22:15 EST 2011


I register at t0 first function and then, if operation is called, I must 
register second function too....

I solve it with 2 same row:

map.events.register|("click", map, function(e)|{ callFunction1() });
map.events.register|("click", map, function(e)|{ callFunction2() });

It run!

> why not:
>
> map.events.register|("click", map, function(e)|{ callFunction1(); 
> callFunction2(); });
>
> ?
>
> On 03/10/2011 03:30 PM, Luca Santaniello wrote:
>> Hi all,
>>
>> I need register many function to click event in different time... for 
>> example:
>>
>> map.events.register|("click", map, function(e)|{ callFunction1() });
>> map.events.register|("click", map, function(e)|{ callFunction2() });
>>
>> Is it possible?
>>
>> Thanks
>> -- 
>> Luca Santaniello
>> email:lsantaniello at cidsoftware.it
>> phone: +39 3470373994
>> skype: luca.santaniello
>> msn:luketto81 at hotmail.com  
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
> -- 
> Atle Frenvik Sveen
> Utvikler
> Geomatikk IKT AS
> tlf: 45 27 86 89
> atle.frenvik.sveen at geomatikk.no
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users


-- 
Luca Santaniello
email: lsantaniello at cidsoftware.it
phone: +39 3470373994
skype: luca.santaniello
msn: luketto81 at hotmail.com

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


More information about the Users mailing list