Skip to content

Commit

Permalink
fixed geojson file name
Browse files Browse the repository at this point in the history
  • Loading branch information
TomSimons committed Oct 21, 2024
1 parent 05c21c3 commit cc49673
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ public void ParseGeoJSON(LocalFile localFile)
private void CreateGeoJSONLayer(LocalFile localFile, UnityEvent<string> onErrorCallback = null)
{
var localFilePath = Path.Combine(Application.persistentDataPath, localFile.LocalFilePath);
var geoJsonLayerName = localFile.OriginalFileName;//Path.GetFileName(localFile.SourceUrl);
if(localFile.SourceUrl.Length > 0)
geoJsonLayerName = localFile.SourceUrl;
var geoJsonLayerName = localFile.OriginalFileName;

//Create a new geojson layer with random color (untill UI provides ways to choose colors)
GeoJsonLayerGameObject newLayer = Instantiate(layerPrefab);
Expand Down

0 comments on commit cc49673

Please sign in to comment.