Select to view content in your preferred language

Dynamically changing layers by scale (generalisation using preset layers)?

1017
1
03-16-2014 04:54 AM
MichaelGinzburg
Frequent Contributor
Hello,

I am given 2 layers: polygons and points. In higher scale I want to display points, in lower - polygons.
I want to manage those 2 layers as a single one. E.g. every time I call the map service,  ESRI will send to the client
either point or polygon layer (according to scale), but for the client it will look like the same layer - it will have the same name etc.
I now I can manage this with some development over dynamic layers.
Is this functionality available off-the-box?

Thanks!
Tags (2)
0 Kudos
1 Reply
WilliamCraft
MVP Alum
I'm not sure I understand what the true question is from the statement above.  If you want to show either polygons or points for a set of map features depending on the scale, then I believe there are two ways to achieve this. 

The first way is the one you touched on, which essentially involves having two layers referencing a polygon and a point feature class which turn on and off based on scale.  It involves two layers and two underlying feature classes.  While you could group them into a Group Layer so they appear as a single layer, ultimately you would still have multiple layer IDs within your map service. 

The second way involves the use of Cartographic Representation, which involves one layer and one feature class.  In the case of cartographic representation, you could just add and publish your polygon feature class as part of the map document but symbolize your polygon features with points based on the scale.  The advantage here is that you don't have to maintain two feature classes of the same data.  Cartographic Representation allows you to customize the appearance of features by storing symbol information with the feature geometry inside feature classes.  These representations are a property of a feature class that are stored in system tables inside the geodatabase and in the feature class itself.
0 Kudos