-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Layer can't be added, issue at createNewLayer() with geojson.geometry == null #1060
Comments
that specific feature service is a very rare example of one that has stripped itself of a i'm not sure if this is a requirement of vendors/providers supplying content to Esri hosted services or a means to restrict server load. either way, we could trap for it in this library. |
Ah! A few more tests on my actual dataset show this. I am working with a published services for a raster mosaic gdb, which has layers for imagery, footprint, and boundary. The boundary layer: However, the footprint layer has the same error as above: Fortunately I needed the boundary layer after all so I'm all set, but something to keep in mind. |
its deceiving that the footprint layer advertises itself as
either way, it'd be good for us to trap for edge cases like this within Esri Leaflet instead of forcing developers to hunt down the cause themselves. |
L.esri.featureLayer({url: 'http://services.arcgisonline.com/arcgis/rest/services/Reference/World_Boundaries_and_Places/MapServer/0'}).addTo(map);
Runs into issues in FeatureLayer.js at line 37:
layer is null, i.e. GeoJSON.geometryToLayer failed.
geojson.geometry
shows as null.The text was updated successfully, but these errors were encountered: