Skip to content

Commit

Permalink
fixed geojson file url
Browse files Browse the repository at this point in the history
  • Loading branch information
TomSimons committed Oct 21, 2024
1 parent cc49673 commit 1db9cc7
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Netherlands3D.Twin.Projects;

namespace Netherlands3D.Twin.Layers.Properties
{
[DataContract(Namespace = "https://netherlands3d.eu/schemas/projects/layers/properties", Name = "Url")]
public class LayerURLPropertyData : LayerPropertyData, ILayerPropertyDataWithAssets
{
[DataMember] public string url = "";

public IEnumerable<LayerAsset> GetAssets()
{
Uri uri = null;
if (!string.IsNullOrEmpty(url))
uri = AssetUriFactory.CreateProjectAssetUri(url);

return new List<LayerAsset>()
{
new (this, !string.IsNullOrEmpty(url) ? new Uri(url) : null)
new(this, uri)
};
}
}
}
}

0 comments on commit 1db9cc7

Please sign in to comment.