Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Evening Guys, I am new to ArcGIS, and currently developing a small app that uses ArcGIS Javascript API.

I have encountered a couple of problems while working on this and would greatly appreciate if somebody could help/point me to the right direction.

I have about 5000 points that I am returning from a database, parsing them, and displaying on my map (a state in the USA). When my app finishes rendering, the entire state is full of points and you cant make anything out of it. Now, so my understanding, simplemakersymbols, when declared have pixel size, so you cant increase the size dynamically when zooming in. Is there any alternative to this?

I tried first declaring a smaller size, and then once zoomed in to a certain scale, I redeclare all the points with a larger pixel size value. Hence all this rendering and rerendering takes a while before all the points are displayed again. So is there a better way to accomplish this task?

Edit 1.0: I am using arcgis 10.1 and create points based on data i receive from database on fly.

share|improve this question
2  
Sounds like the points are not in a map service but your programmatically creating points on the fly direct from the DB in a feature/graphics layer? Please also edit your Q to state version of ArcGIS Server. –  Simon Dec 22 '12 at 9:36
    
@jainilshah, have you considered implementing Multipoint objects as a solution? I've never used it, so I can't explain what you need to do, but if I were in your shoes this is what I'd try first. –  elrobis Dec 22 '12 at 15:33
    
Thanks for the A to my Q. Are you restrained to have to pull from the DB. I could give you a good answer if you can pull the data into a Dynamic Map Service within ArcGIS Server. –  Simon Dec 29 '12 at 3:08
    
Closely related: gis.stackexchange.com/questions/27719/… –  whuber Dec 30 '12 at 14:31
add comment

2 Answers 2

You need to aplly a kind of cluster to group points that are close to each other. I not a arcgis user but it should have something to do that.

If not you can try inspect the scale of map been showed and collapse points based on proximity and scale.

Now your map will have two kinds of points, cluster points and unclustered points. Cluster points click should trigger an increate scale denominator action.

share|improve this answer
add comment

There are lots of ways to handle large datasets if you can create an ArcGIS Server map service from the data (auto generalization, tiling, scale dependency, dynamic service combined with feature service), but if you can only get the data on the fly and make individual graphics, you are going to have to cluster. (Google maps used to have this problem of bogging down when adding lots of individual graphics to browser -- they cluster now.)

Here is the ArcGIS JS sample that shows how to do it. A thought -- you could break out clusters by county boundary polygons in the state.

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/layers_point_clustering.html

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.