Comments (7)
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:
Visual evidence of the AGS Service working:
from esri-leaflet-renderers.
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.
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.
It looks like I was able to fix the problem on the ArcGIS Server end:
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.
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.
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.
PRs welcome, I don't have plans to work on this one though.
from esri-leaflet-renderers.
Related Issues (20)
- About the main file HOT 3
- add support for text symbols HOT 6
- setWhere callback is not called HOT 3
- featureLayer throws 'this.options.userDefinedStyle is not a function' intermittently HOT 7
- Unable to use plugin via AMD HOT 7
- Unable to build under node v7.7.4 HOT 1
- picture marker symbols in custom panes don't draw in drupal (and other CMSs) HOT 19
- Next release? HOT 3
- Default Marker show up after clustering with esri-leaflet-cluster HOT 1
- Support valueExpression property of renderer. HOT 2
- Make esri-leaflet et al peerDependencies HOT 4
- Cluster HOT 5
- Uncaught TypeError: Cannot read property 'options' of undefined HOT 1
- initHooks are not setted using import style HOT 3
- TypeError: Cannot read properties of undefined (reading 'addInitHook') HOT 10
- Hi When deploying a docker the package gives this error and does not render a map HOT 2
- Support for esri leaflet 3 HOT 8
- Rendering/Redrawing layers created from ArcGIS point features fails due to Uncaught TypeError HOT 3
- Is it possible to use the plug-in to generate an image from symbol JSON for use outside of map
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esri-leaflet-renderers.