Here is a poc (proof of concept) to illustrate the idea.
In this poc people users can zoom in or out on one of the two maps, zoom is synchronised between each other. OpenLayers and Leaflet maps are just views of the domain class lizmapMap.
Zoom on one of the maps change the lizmapMap zoom state
Zoom change is dispatched via the dispatcher
All listening views refresh their UI according to this new zoom state.
Lizmap RFC: Unidirectional User Interface Architecture
Date 2019/08/05
Author Nicolas Boisteault (@nboisteault )
maintainer @nboisteault
Version Lizmap-Web-Client 4.0
Summary
In Lizmap 4 we want to use Unidirectional User Interface Architecture![image](https://user-images.githubusercontent.com/2145040/62475780-081bbb00-b7a6-11e9-8d71-8defe2d7dc7b.png)
Proposed Solution
Architecture proposed by @laurentj in https://github.com/3liz/lizmap-web-client/commits/dev_lizmap4
Example
Here is a poc (proof of concept) to illustrate the idea. In this poc people users can zoom in or out on one of the two maps, zoom is synchronised between each other. OpenLayers and Leaflet maps are just views of the domain class lizmapMap.