Skip to content
James Rae edited this page Jan 5, 2016 · 3 revisions

The Layer section handles stuff involving map layers.

It will expose the API Objects for use throughout the app. As discussed in the geoApi proposal, given the complexity of ESRI API Layer objects, we will not attempt to wrap or abstract them. They can lurk outside of geoApi. Objects exposed include (TODO add classes as we implement support for them)

The conversion of alternate file formats (GeoJSON, CSV, Shapefile, TODO add other formats as they are supported) to FeatureLayer is also done here. The following libraries should be utilized to assist in the conversion.

We also provide a function that will link any provided event handlers to the Dojo on events for ESRI layer objects. Events wrapped include load, error, update-start, update-end, click, mouse-over, mouse-out. If it proves useful, we may add some extra event logic (e.g. a special loaded event that happens once after the first update-end event triggers). See the event handlers page for more details