How to initialize a LocalFeatureLayerService
Through JavaScript code (TypeScript really), I successfully have been able to load a Shpefile into my map. I uploaded the files, converted them into a Featurset, added them to a Feature Service, then ran the AddMapService command.
I am using the geocortex.essentialsHtmlViewer.mapping.infrastructure.LayerIntegrationUtils.LocalFeatureLayerService class because it is a "Specialized Geocortex feature layer map service that exists in a disconnected state (no URL)."
One of the problems I have run into is that I get an error when I run the identify tool. Through some debugging, I think it's because the added Feature Service has not been initialized yet. However, when I try to run the initialize method, I get an error that states that it is "Unable to initialize AsyncInitializable without a valid URL".
I know this should work because the out of the box Upload Tool can upload a shapefile, along with supporting the ability to run the indentify tool upon it.
How can one initialize a FeatureLayer that doesn't have a URL... or am I looking in the wrong place?
Any ideas?
0
-
BTW: I figured out how to inialize it, but it didn't make a difference with the identify tool. 0
Please sign in to leave a comment.
Comments
1 comment