You had memory or performance issues displaying millions of points?
You can use GraphicLayer to display data with latitude and longitude.
// construct spatial reference
SpatialReference spatialReference = SpatialReference.create(102100)
// construct symbol
MarkerSymbol markerSymbol = new PictureMarkerSymbol(ImageLoader.loadImage("icons/triange_red.png"));
for (int i = 0; i < points; i++) {
//
Point point = GeometryEngine.project(longitude, latitude, spatialReference);
graphicsLayer.addGraphic(new Graphic(point, markerSymbol));
}
If you need a visual representation, can you explain how you expect them to be distinguishable from one another?
Something like this.
I would probably summarize the points based upon the underlying polygons, then return the centroid of that polygon with the count of the points attributed to each polygon used to symbolize the point. I presume that the image on the right wasn't done that way in an Arc* environment?
No.
I try it
don't know about your need to do this in your environment, but ArcMap has tools to help in the aggregation of points based on distance... Aggregate Points—Help | ArcGIS for Desktop
I moved this from the Android location to the Java location as Swing is a Java technology.
You had memory or performance issues displaying millions of points?
You can use GraphicLayer to display data with latitude and longitude.
// construct spatial reference
SpatialReference spatialReference = SpatialReference.create(102100)
// construct symbol
MarkerSymbol markerSymbol = new PictureMarkerSymbol(ImageLoader.loadImage("icons/triange_red.png"));
for (int i = 0; i < points; i++) {
//
Point point = GeometryEngine.project(longitude, latitude, spatialReference);
graphicsLayer.addGraphic(new Graphic(point, markerSymbol));
}
Performance issue,
Thanks for your answer.