Comments (2)
Confirmed with the following code:
Random r = new Random();
BitmapDescriptor magentaIcon =
BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_MAGENTA);
for (int i = 0; i < 20000; i++) {
LatLng position = new LatLng(r.nextDouble() * 170 - 95, r.nextDouble() * 360 - 180);
map.addMarker(new MarkerOptions().position(position).icon(magentaIcon));
}
Changes in API to be made:
ClusteringSettings.addMarkersOnlyInVisibleRegion(boolean)
Considerations:
1) Should default value of addMarkersOnlyInVisibleRegion be true?
2) Region to be used needs to be a bit bigger than what
Projection.getVisibleRegion() returns as it should include markers that are
outside of the screen in cluster that is partially visible.
Original comment by [email protected]
on 22 Mar 2013 at 12:27
- Changed state: Accepted
- Added labels: Type-Enhancement
from android-maps-extensions.
ClusteringSettings.addMarkersDynamically has been added. It has effect both
when clustering is enabled and disabled.
Default value stays false to have the same behaviour as in Google Maps Android
API v2.
Thank you for reporting this issue.
Original comment by [email protected]
on 24 Mar 2013 at 6:51
- Changed state: Fixed
from android-maps-extensions.
Related Issues (20)
- Markers with the same position always appear clustered HOT 3
- IndexOutOfBoundsException om markers remove HOT 1
- Markers are not visible. HOT 7
- cannot use snapshot() method ,how to do screenshot on googlemap v2 HOT 3
- Crashes LazyMarker.java HOT 1
- Crashes LazyMarker.java HOT 8
- Map is unresponsive after adding a lot of markers until suspend/resume HOT 2
- Cluster ClusterMarker if they are very close together HOT 1
- GoogleMap.onMapLoadedCallback() HOT 6
- Swtich to android support library v13 HOT 3
- Extend MapFragment HOT 3
- Restructure project HOT 4
- Inhibit clustering of marker HOT 1
- NPE in calculateDistanceBetweenMarkers() HOT 2
- Draw text on markers in onCameraChange HOT 3
- Make this library work with the Google Maps for Business SDK HOT 1
- IllegalArgumentException when try to execute marker.setIcon in the onMarkerClick callback HOT 12
- getMarkers() getting different results HOT 1
- Google maps extensions does not find fragment R.id.map
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-maps-extensions.