onaio / kujaku

Mapping and check-in library for Android using MapBox SDK
https://ona.io
BSD 2-Clause "Simplified" License
18 stars 13 forks source link

Add bounding box changed listener in support of bounding box query support #203

Closed ekigamba closed 5 years ago

ekigamba commented 5 years ago

IMO, for bounding box query support to work:

  1. We need to know when the bounding box changes and then
  2. Either query the host application for an update of the map or inform the host application that the bounding box has changed.

We might not want to force the host application to provide an update on the map depending on the strategy taken towards displaying features on the map but might rather prefer to make it optional so that the host application is informed that the bounding box has changed. The host application can then either update the map or ignore this having provided all features initially.


This issue is supposed to support 1 and provide a listener that host applications can use to get updates when the bounding box changes.

Updating the map as the GeoWidget can get a bit complicated while trying to address performance issues as per https://docs.google.com/document/d/1pjVAofcMd_9qAz19413ObpXCwqlaF7w3hAY5Z4U0Mpk/edit