Giter Club home page Giter Club logo

Comments (7)

jmunowitch avatar jmunowitch commented on June 2, 2024

Specifics of the usecase:
Query Layer in an ArcGIS Desktop (10.3) MXD, connected to an Oracle DB Backend
Published to ArcGIS Server (Linux, unknown version), with data copied over to the server.

Library Versions:

Visual evidence of the symbology:
symbology
Visual evidence of the AGS Service working:
symbology2

from esri-leaflet-renderers.

jgravois avatar jgravois commented on June 2, 2024

thx. if you could copy/paste a snippet to show an example of the service metadata too, that'd be really helpful.

"fields": [
    {
      "name": "OBJECTID",
      "type": "esriFieldTypeOID",
      "alias": "OBJECTID",
      "domain": null
    },
    {
      "name": "Shape",
      "type": "esriFieldTypeGeometry",
      "alias": "Shape",
      "domain": null
    },
    {
      "name": "STATE_NAME",
      "type": "esriFieldTypeString",
      "alias": "STATE_NAME",
      "length": 25,
      "domain": null
    }
]

from esri-leaflet-renderers.

jmunowitch avatar jmunowitch commented on June 2, 2024

I have cut out a lot of fields, but included the ones I think were relevant:

"fields":[
    {"name":"floor","type":"esriFieldTypeString","alias":"FLOOR","length":20,"domain":null},
    {"name":"geometry","type":"esriFieldTypeGeometry","alias":"GEOMETRY","domain":null},
    {"name":"company_name","type":"esriFieldTypeString","alias":"COMPANY_NAME","length":50,"domain":null},
    {"name":"objectid","type":"esriFieldTypeOID","alias":"OBJECTID","domain":null},
    {"name":"st_area(geometry)","type":"esriFieldTypeDouble","alias":"st_area(geometry)","domain":null},
    {"name":"st_length(geometry)","type":"esriFieldTypeDouble","alias":"st_length(geometry)","domain":null}
]

from esri-leaflet-renderers.

jmunowitch avatar jmunowitch commented on June 2, 2024

It looks like I was able to fix the problem on the ArcGIS Server end:
publishags

Publishing the service with only Mapping capabilities publishes the attributes with all caps (like the layer in ArcGIS Desktop). I originally had KML and Feature Access enabled as well, which caused the layer to be published with lower case attribute names, which messed up the symbology, as well as some of my esri-leaflet code.

Not retaining the symbology for the service still seems like a bug though.

from esri-leaflet-renderers.

jgravois avatar jgravois commented on June 2, 2024

I originally had KML and Feature Access enabled as well, which caused the layer to be published with lower case attribute names.

thats really weird.

glad to hear its just a curiosity at this point, but i'll still find time to try and trap the undesirable behavior here.

from esri-leaflet-renderers.

jmunowitch avatar jmunowitch commented on June 2, 2024

My guess is AGS does this for compatibility sake for KML or Feature Access. Maybe capitalization isn't supported in one of those standards?

from esri-leaflet-renderers.

jgravois avatar jgravois commented on June 2, 2024

PRs welcome, I don't have plans to work on this one though.

from esri-leaflet-renderers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.