legend swatch symbology
How do you update the legend swatches? We updated the symbology in our ArcGIS Server layer and it draws correctly in the map but the swatch shown in the layer list still shows the old symbology.
Does Essentials cache these somewhere or request them on-the-fly?
I've reloaded the site through Essentials Manager and cleared my browser cache but it hasn't gotten updated.
0
-
Your viewer makes a request for the legend from your service when it loads the layer. However, the legend comes in as an image file, which may be cached by your browser... I see you've already cleared yours though so am rather surprised that you're experienceing issues.
I'd open your network tab and reload your viewer. Filter on the domain of your mapserver and you'll find some requests for legends that have query clauses beginnign with "legend?" and ending with "&f=json". Copy the request into your browser url but before navigating you should remove "&f=json" from the end... this will show you exactly what the viewer is receiving from the server and the location that it comes from, which will inform whether the issue is on the server or with your browser.0 -
The legend symbolization issue seems to be related to the fact that the layer in question was added to the site as an 'ArcGIS Feature Layer' where other layers in the site were added as an 'ArcGIS Dynamic Map Service'. It appears that feature layers get additional CSS classes added to the swatch (.layer-list-legend-icon .simple-swatch.square, .square ; .layer-list-legend-icon .simple-swatch; .simple-swatch) which the ones for Dynamic Map Services do not.
Will have to dig into this and see if I can disable those styles somehow.0 -
Also, it appears that for dynamic layers, the viewer is actually using an image (there is an <img> tag in the html code but for feature layers the viewer just uses a <div> tag with the height,width,background-color and border properties specified. 0 -
Hello Peter,
I was wondering if you ever found a solution to your problem?
We have found that the css for the feature layer and map service is different. The layer list for the feature layer is larger due to the css differences.
Thanks!0 -
I am also experiencing a similar issue. Recently my symbology for some of my layers has disappeared from my sites for selected map services well. Has any solution been identified for this issue.
Thanks
Katherine0 -
Katherine, I could never figure out how to fix the issue. I ended up creating a brand new site, and re-configuring everything. 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
6 Kommentare