When the user drags the map around, I want to know what the lat/long of the map center point is and update 2 EditText views with the current lat/long.
I can't seem to find a listener which gets fired on a drag or drop event. Any help would be appreciated.
I have a:
Using java Syntax Highlighting
- MapView myMapView = (MapView) findViewById(R.id.myMapView);
- myMapView.setOnClickListener()
- {
- public void onClick(View v)
- {
- Point p = myMapView.getMapCenter();
- latitudeText.setText(""+(p.getLatitude()/1E6));
- longitudeText.setText(""+(p.getLongitude()/1E6));
- }
- };
Parsed in 0.032 seconds, using GeSHi 1.0.8.4
But it never enters that piece of code when the map is dragged...

:


