kalisio / kano

Map and weather forecast data explorer in 2D/3D
https://kalisio.github.io/kano/
MIT License
24 stars 7 forks source link

Click event not sent in iframe API #153

Closed claustres closed 3 years ago

claustres commented 3 years ago

post-robot complains about a circular structure to be serialized. Linked to the leaflet layer passed to post-robot instead of the layer definition object (see https://github.com/kalisio/kano/commit/0206e83072ae52e3d6b7a5a505d77f5eb4613f3b#diff-cfa165427c75bcb64098dc8e3fd2f7862a579348ac088ddee2af048a185ba081R211).

claustres commented 3 years ago

Fixed in https://github.com/kalisio/kano/commit/6735c9d2363a489b944e1791dd45322d3e7e2dfe.

claustres commented 3 years ago

The bug still appears if the layer contains a template definition.

It is related to the fact we process the input layer options here, possibly adding internal objects like template compilers, and the processed options are then sent with the event. We should instead send the original options, not the processed ones.