Way-Fi 1.6.0
fun loadLayer(layerName: String, fileName: String, crs: Layer.CRS = Layer.CRS.CARTESIAN, crsOverride: Boolean = true): Int
Loads a new layer from a GeoJSON file specifying the default CRS.
Return
The id ot the newly created layer.
Parameters
layerName
The name of the layer (as referred by other layers)
fileName
The full path of the GeoJSON file.
crs
The default CRS used if not specified in the file.
crsOverride
If false, the CRS will not be overridden by the one specified in the file.