Symbologies

2016
8
07-23-2010 08:50 AM
New Contributor III
Hi,

This might well be a schoolboy error; apologies if so!

I'm doing some testing with beta 2; just seeing what you can do really... it looks pretty impressive, but at the moment all my layers are coming out black - lines at 1 point thickness; points are about 18 point in size.

The layers I'm loading in are from our ArcGIS Server, which is still on 9.3.1. The services have all manner of garish symbologies applied to them, and they seem to still work properly in all our 9.3.1 apps, some of which use Flex.

So is there a particular reason why the symbologies aren't carrying across? Is it just because I'm trying to operate from the two different versions?

Any thoughts on what the solution might be?

Thanks!
Roland.
Tags (2)
Reply
0 Kudos
8 Replies
New Contributor II
Does your symbology is part of a graphic layer or is it part of a base map?

If a basemap as a wrong symbology, then I believe it is a problem with the rest service itself. Maybe you can check the appearance of the images that are queried to the server with a tool like firebug.
Reply
0 Kudos
New Contributor III
Does your symbology is part of a graphic layer or is it part of a base map?

If a basemap as a wrong symbology, then I believe it is a problem with the rest service itself. Maybe you can check the appearance of the images that are queried to the server with a tool like firebug.


Thanks for your thoughts. I'm using Desktop 9.3.1, so it's not a basemap. Not sure what you mean by graphic layer?

I did make some progress, just by guessing settings. At the moment, if I choose layer type="dynamic" and set the url to the service, I can get the symbology but can't query it. If I choose layer type="feature" and set the url to one of the layers, then I can query it by clicking on it, but its appearance is just black.

This does make some sense to me, as the latter is presumably rendered client-side - but I could do with better documentation to try and work this out. Any clues where I should be looking for more info on these settings? This new arcgis.com is nearly as confusing as the main ESRI site!
Reply
0 Kudos
Frequent Contributor
Is your ArcGIS Server version 10? Using a FeatureLayer, you can only get symbology back from AGS10. I had this issue when I started using FeatureLayer's before I upgraded my server.
Reply
0 Kudos
New Contributor III
Is your ArcGIS Server version 10? Using a FeatureLayer, you can only get symbology back from AGS10. I had this issue when I started using FeatureLayer's before I upgraded my server.


It isn't - see my original post. Thanks; that answers my original query!
Reply
0 Kudos
MVP Esteemed Contributor
Roland,

   There is no reason that you should not get your map service rendered suing the same symbology that you see in ArcMap and also be able to query it. I would suggest a couple of checks.

1. Open a web browser and type in the address http://yourarcgisservername/arcgis/rest/ and then go to the map service in question click on the link for "ArcGIS JavaScript" and see if the symbology is correct there.

2. For the querying part ensure that you shape and id fields are not hidden in the map services MXD.
Reply
0 Kudos
New Contributor III
Hi Robert,

Thanks for your thoughts on this!

1. Open a web browser and type in the address http://yourarcgisservername/arcgis/rest/ and then go to the map service in question click on the link for "ArcGIS JavaScript" and see if the symbology is correct there.


It is. I suspect Odoe was correct - I'm getting to the point where I can't see any other obvious reason why they may not work.

2. For the querying part ensure that you shape and id fields are not hidden in the map services MXD.


All fields are turned on.

Thanks again,
Roland.
Reply
0 Kudos
Esri Regular Contributor
An ArcGIS Server 10 layer can include a Renderer in the Drawing Info.
e.g. http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/...

The Flex API's FeatureLayer will use this by default. If you're using a layer that does not have any Drawing Info, then the default symbology is used. You can set a renderer or symbol on the FeatureLayer since these properties are inherited from GraphicsLayer:
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/GraphicsLayer.html
Reply
0 Kudos
New Contributor III
An ArcGIS Server 10 layer can include a Renderer in the Drawing Info.
e.g. http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/...

The Flex API's FeatureLayer will use this by default. If you're using a layer that does not have any Drawing Info, then the default symbology is used. You can set a renderer or symbol on the FeatureLayer since these properties are inherited from GraphicsLayer:
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/GraphicsLayer.html


So the practical upshot of this is that while I'm mixing 9.3.1 with 10, if I want to use feature layers I need to specify the symbology using code?

Presumably dynamic layers can't be queried?

Thanks!
Reply
0 Kudos