-
Notifications
You must be signed in to change notification settings - Fork 26
MAPP.UI
MAPP.UI is a library to build interfaces which extend the map component.
mapp.ui.Dataview() is a decorator method. The dataview provided as only argument (_this) will be decorated and returned to the caller.
The dataview decorator will attempt to get the target element by it's ID if provided as a string. A div with the dataview-target class is created and assigned as target parameter if no target element is either found or provided as instanceof HTMLElement.
The dataview.update method will execute a parametrised query assigned to the dataview and send the query response as data to the dataview.setData method.
With the mapChange flag set on the dataview an event listener will be added to the mapview Map element. The dataview.update method will be called on the changeEnd mapview event if the mapChange flag is set.