Select to view content in your preferred language

Retaining symbology of map services and feature layers

2821
8
12-31-2010 08:35 AM
DonBarker
Regular Contributor
My question is indirectly related to the Flex viewer:

When I show this map service in the Flex viewer

http://129.2.24.243/Semental2/rest/services/CRH_L1-L2/MapServer

the scale-dependent and layer-dependent symbology is retained in the viewer.

But when I use separate feature layers (because I can use the InfoPopup window only with feature layers) like this one

http://129.2.24.243/Semental2/rest/services/CRH_L1-L2/MapServer/2

the symbols are big, ugly dots.

Any way to control the feature layer symbology in the viewer?

Thanks,
Don
Tags (2)
0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus
Don,

   If you are using a layer type of Feature and you are not using ArcGIS Server 10 than you will not be able to retain the symbology that is specified in ArcMap. In FlexViewer 2.2 there is not an easy way to fix this unless you put some custom code in the MapManager.mxml. In FlexViewer 2.3 this will be a different story I'm told. The best solution is to be up to date on ArcGIS Server (i.e. ArcGIS Server 10 SP 1) there is just to many advances and advantages of 10 to not go ahead and update.
0 Kudos
MehulChoksey
Esri Contributor
Feature Drawing rendering info is returned by AGS server starting with version 10. Flex api takes advantage of this drawing info and also it honours scale dependency.
e.g. see Drawing Info section at:
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSPetro/MapServer/0 

You have 9.31. So creating your own renderer/symbol would be way to go.
0 Kudos
deleted-user-NnRwwd8ols89
Deactivated User
Hey guys, i'm a bit confused about feature layer symbology. I'm using Flex API 2.2, and server 10, and can return the symbology as defined in the msd's from the server no problems.

i have just upgraded to server 10, previously i have used feature layers a limited amount with server 9.3.1 and defined each layers symbology individually in the mapmanager.mxml

i thought however that one of the benefits of feature layers is client side graphics, so my question is should i use the symbology from my msd, or redefine everything as the feature layer symbology? i'm about to start a big project with c.60 layers, so i want to get it right from the start and make it as efficient as possible!

thanks
Ben
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ben,

   Now that you upgraded to Server 10 you should be getting symbology for the individual feature layers so when you were using 9.3.1 and specified http://myArcGisServer/ArcGIS/Rest/Services/MyService/2 you would have gotten ugly default symbology but now with 10, http://myArcGisServer/ArcGIS/Rest/Services/MyService/2 should return the exact symbology see in ArcMap as long as the symbology is supported. Are you not seeing this?
0 Kudos
deleted-user-NnRwwd8ols89
Deactivated User
Hi Rob, yes this is what i get, the nice symbology for each layer when called individually. i just wanted to make sure that this is best practice!

thanks for all your help and advice
0 Kudos
MichaelMorgan
Deactivated User
I'm trying to use a public service that doesn't support ArcGIS 10 symbology, http://ags.pdc.org/rest/services/GHIN/PDC_Active_Hazards/MapServer/10. Nice little hurricane symbols in their Google Earth preview, big ugly dots in my Viewer. Is there an easy way to symbolize this data client-side in the Viewer? I'd like to symbolize polygon features client-side as well, see http://ags.pdc.org/rest/services/GHIN/PDC_Active_Hazards/MapServer/22.

Mike Morgan
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
MichaelMorgan
Deactivated User
Yes, that did it. Thank you, Robert.
0 Kudos