android - How to get the Map Extent change event in OSMdroid? -


i using osmdroid library in custom android app.

at every extent change (& when map zoomed in) want query sqlite database , records lie within extent. need similar map extent change event.

i not find such event on mapview class. how achieve want do?

update using maplistner this:

mapview.setmaplistener(new maplistener() {        public boolean onzoom(zoomevent arg0) {         return false;     }      public boolean onscroll(scrollevent arg0) {          onextentchange();         return false;     } } ); 

but onscrollevnt fired several times each pan of map. how last or final scrollevent?

setmaplistener(new delayedmaplistener(new maplistener() {       public boolean onzoom(final zoomevent e) {         //do         return true;     }      public boolean onscroll(final scrollevent e) {         log.i("zoom", e.tostring());         return true;     }     }, 1000 )); 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -