Hoppa till huvudinnehållet

legend swatch symbology

Kommentarer

6 kommentarer

  • Zack Robison
    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
  • Permanently deleted user
    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
  • Permanently deleted user
    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
  • Permanently deleted user
    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
  • Permanently deleted user
    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

     

    Katherine
    0
  • Permanently deleted user
    Katherine, I could never figure out how to fix the issue. I ended up creating a brand new site, and re-configuring everything.
    0

Du måste logga in om du vill lämna en kommentar.