Note: only one of: o SpatialReference
o Wkid
o Wkt
need be set.
If the SpatialReference is set, Wkid and Wkt are ignored. If the SpatialReference is null, then Wkid is used. If the Wkid is 0 (or less), then the Wkt is used.
If no SpatialReference is set then the first SpatialReference of the first layer in the provided map is selected. If no map is provided then no SpatialReference is selected.
Target Platforms: Windows 11, Windows 10