There is a map, a bunch of markers on it. Now the card is loaded and through the flask it reacts when to cut down the progress of the dialogue. And the markers are loaded later. How to make so that when the map is moving, the markers that are in this area of the map are loaded? Or tell me how to remove the loading of markers in the progress dialog?
myProgress = new ProgressDialog(this); myProgress.setTitle("Карта загружается"); myProgress.show(); mapFragment.getMapAsync(new OnMapReadyCallback() { @Override public void onMapReady(GoogleMap googleMap) { onMapReady2(googleMap); }}); public void onMapReady2(GoogleMap googleMap) { mMap = googleMap; mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() { @Override public void onMapLoaded() { myProgress.dismiss(); } }); }