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.

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.
–
SimonDec 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.
–
elrobisDec 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.
–
SimonDec 29 '12 at 3:08

2 Answers
2

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.