@@ -163,10 +163,10 @@ end
163163A Feature with `D` dimensional geometry.
164164"""
165165struct Feature{D,T} <: GeoJSONT{D,T}
166- id:: Union{Nothing,String,Int}
166+ id:: Any
167167 bbox:: Union{Nothing,Vector{T}}
168168 geometry:: Union{Nothing,AbstractGeometry{D,T}}
169- properties:: Union{Nothing,NamedTuple }
169+ properties:: Union{Nothing,Dict{Symbol,Any} }
170170 Feature {D,T} (id, bbox, geometry, properties) where {D,T} = new {D,T} (id, bbox, geometry, properties)
171171 Feature {D,T} (; id= nothing , bbox= nothing , geometry= nothing , properties= NamedTuple ()) where {D,T} = Feature {D,T} (id, bbox, geometry, properties)
172172end
@@ -176,7 +176,7 @@ id(f::Feature) = getfield(f, :id)
176176geometry (f:: Feature ) = getfield (f, :geometry )
177177function properties (f:: Feature )
178178 props = getfield (f, :properties )
179- return isnothing (props) ? (; ) : props
179+ return isnothing (props) ? Dict {Symbol,Any} ( ) : props
180180end
181181
182182coordinates (f:: Feature ) = coordinates (geometry (f))
0 commit comments