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.

I am using ArcGIS Server 10.1 and Desktop 10.1 software.

I am publishing table from sqlserver to the ArcGIS server, that table (from sqlserver) is updating hourly, and the types are increasing.

I want to create dynamic layers according to type…( I am integrating those layers in Java script API)

So how should I do that? Any ideas/help will be highly appreciated..Thanks in advance : )

We have Desktop 10.1 and Server 10.1 only no ArcSDE.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Little unclear what your scenario is, but if your saying that one column holds a type, say FRUIT_TYPE, and records are being added with additional types of fruit... it was [apples, oranges, grapes] now it's [apples, oranges, grapes, kumquats] you can't on the fly make new layers based on types. If you know the types ahead of time, you can make different layers based on a definition query.

What I think you want to do is symbolize a single layer using the column FRUIT_TYPE in the map document, see "Drawing a layer using categories" http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Drawing_a_layer_using_categories/00s50000003m000000/

Then you publish as a ArcGISDynamicMapServiceLayer

If you made a the data a feature class, you could do some dynamic styling in javascript, maybe using a randomized color (or maybe define a long array of colors and pop the next one as needed) based on FRUIT_TYPE.

Then, do some javascript magic with popups or queries or identifytask, see my website for nice identify snippet http://www.spatialexception.org/posts/arcgis-javascript-identifytask-returns-scale-dependent-layers

share|improve this answer
    
thanks for your reply..I will check this and let you know..thanks once again : ) –  Sunil Nov 14 '12 at 18:54
    
@Awesomo...thanks for the link..looks like its resolved my issue..thanks for your reply and the links.. I appreciate that !! : ) –  Sunil Nov 19 '12 at 4:53
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.