opensciencemap / vtm

a vector-tile map library written in java - running on android, desktop and within the browser
GNU Lesser General Public License v3.0
238 stars 176 forks source link

MapPosition change listener #97

Closed conpota closed 10 years ago

conpota commented 10 years ago

I want MapPosition change listener. like GoogleMap.OnCameraChangeListener.

hjanetzek commented 10 years ago

See Map.UpdateListener. It can also be used like this

map.events.bind(new MapUpdateListerner(){
void onMapEvent(Event e, MapPosition mapPosition){ 
    if (e == Map.POSITION_EVENT){ 
        // update state for new position
       }
}});
conpota commented 10 years ago

Thanx!