TopoJsonOptions.DefaultObjectName property

Name of the object where features are put by default.

public string DefaultObjectName { get; set; }


This is writing option - it does not affect reading. TopoJSON may contain any number of named objects. Every such object can contain multiple features. In order to specify in which object to put your feature, use ObjectNameAttribute property. If attribute with name ObjectNameAttribute is null or unset for some feature, this feature is added to object with the name DefaultObjectName. If attribute with name ObjectNameAttribute is not present in Attributes collection, all features are put into object with name ObjectNameAttribute. Default value is “unnamed”.

See Also