[MapQuery] Make it possible to add event listeners to the map options?

Volker Mische volker.mische at gmail.com
Wed Mar 7 05:29:13 EST 2012


On 03/07/2012 10:20 AM, Christian Wygoda wrote:
> Hi,
> 
> I am contemplating the idea of passing event listeners to the map options...
> Then one could pass a listener for the mqLayerAdd event plus layers in
> the map options.
> 
> Does that sound reasonable?
> 
> Cheers,
>   C

I currently work on the event handling (every evening atm, hence I'm
getting somewhere).

I haven't yet thought much about, how much things we put into the map
options. But I think it would be nice, if it would be just JSON and not
full JavaScript. This way you could easily get the options from some
server. It's not JSON only atm IIRC, but we might want to change it?

What is the reason to put it into the initialisation?

I think it's simpler and also more expressive if you do it with some
binds after the map was initialised. Rather than having one big
configuration thing.

Cheers,
  Volker


More information about the MapQuery mailing list