for the html5 viewer, can you redefine the map layer symbology. the map services support dyanamic layers
we need to redefine the symbology coming from a map service that has dynamic layer and workflow, user symbology request etc. already enabled. this is a polygon layer, but all we need is a simple polygon style. is that possible to do. i have not gotten the dynamic defintion to work and the style is a user selection. we want to redefine the layer symbology in the manager.
0
-
Are you looking to change the symbology using a workflow that has the user select a symbology to apply to the layer? Or are you just trying to use the Dynamic Definition in GE Manager? 0 -
we just want to use the dynamic definition in ge manager. we have a polygon map that we wish to change the outline color of the polygons from red to black. we have tried to use the dynamic definition in GE manager and could not get it working.
We are using the html5 viewer, so just so you know which technology we are working with. What we want to do is to enter the dynamic symbology changes in the manager the GE Manager so we can control the symbology of some of the site we use in the manger before it ever gets to the users.
our experience:
We have set up the service according to the instructions in the ge manual, dynanmic layers, dynamic workspace, allow symbology etc and we have entered what we think is the correct symbology syntax. so we are seeking help.
in this case, we need to change the color of the polygon outlines in the arcgis mapservice we are consuming from red outlines to black outlines.
so based on the syntax we found in the esri documentation for symbols we have tried this syntax
{
"type": "esriSFS",
"style": "esriSFSSolid",
"color": [0,255,255,255],
"outline": { "type": "esriSLS",
"style": "esriSLSSolid",
"color": [0,0,0,0],
"width": 1 }
}
we get the following error in the manager:
'The dynamic definition is invalid for the layer with name 'Herd Area Polygons'.
so at the rest endpont for that arcgis map service, that does not work either. it implies that we sould be entering either a unique or classified class defintion, but no option for simple
can you help with this with some examples. if there is an external polygon site we could use with your examples, that would be great!
J0 -
you have to define a source as well as the drawing info. Also, for the color values, the last one is the alpha. It needs to be more than 0 or the color will not show up.
Try this:
{
"source": {
"type": "mapLayer",
"mapLayerId": 0
},
"drawingInfo": {
"renderer": {
"type": "simple",
"symbol": {
"type": "esriSFS",
"style": "esriSFSSolid",
"color": [
0,
255,
255,
255
],
"outline": {
"type": "esriSLS",
"style": "esriSLSSolid",
"color": [
0,
0,
0,
255
],
"width": 1
}
},
"label": "",
"description": ""
},
"transparency": 0,
"labelingInfo": null
}
}0 -
worked great!!! thanx 0 -
does that change also change the legend and show the new symbology? 0 -
It should, yes. 0 -
Can you test that? when i did this, it did not change the legend? Is there additional coding that i should put in? 0 -
In my test viewer, the legend updates with the new symbology. 0 -
ok, thank you, i will retest and check my codes. must have missed something.
jeff0 -
ok, in my viewer 2.5.1 the dynamic definition for the new symbol does not show up in the legend. do i need to make additional changes to the code? 0 -
I only needed to put in the dynamic definition and the legend updated. However, I just tried a couple different colors and it seems that the symbol would only appear for certain color values. Not sure if this is a bug in the legend renderer or what.
Try some different color values and see what happens. (When I had a 1 or 0 for any of the values it seemed not to work).0 -
my dynamic color displays in the map as per my dynamic definition, but the legend symbol ( a hollow black fill polygon) does not show up at all. I believe my arcgis allows the user to change the symbol, would there be other parameters i need to change in the arc server config. perhaps that is the problem?
j0 -
I don't know, I'm not sure what the issue is. The problem is intermittent on my test viewer. I would open a support ticket with Latitude and see what they have to say. 0 -
I could not get this to work, lets leave this behind and focus on whats in the beta release. i tried different color values, i also added the layer as a dynamic layer in the inclusion or exclusion widget. displays great in the map, still no legend? i will try it in the beta release as soon as i get it installed. 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
14 Kommentare