3liz / lizmap-rfc

Lizmap Request For Comment
2 stars 0 forks source link

Unidirectional User Interface Architecture #3

Open nboisteault opened 4 years ago

nboisteault commented 4 years ago

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

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.

  1. Zoom on one of the maps change the lizmapMap zoom state
  2. Zoom change is dispatched via the dispatcher
  3. All listening views refresh their UI according to this new zoom state.

Peek 05-08-2019 18-02

rldhont commented 4 years ago

@nboisteault thanks for the poc and the demo