diff --git a/Directory.Build.props b/Directory.Build.props
index 949a79009..e0d27f3d9 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -6,7 +6,7 @@
enable
enable
true
- 5.0.0.75
+ 5.0.0.78
Debug;Release;SourceGen Highlighting
AnyCPU
true
diff --git a/build-tools/linux-x64/BuildAppSettings b/build-tools/linux-x64/BuildAppSettings
index 45ce8ddd2..e9b810ae0 100755
Binary files a/build-tools/linux-x64/BuildAppSettings and b/build-tools/linux-x64/BuildAppSettings differ
diff --git a/build-tools/linux-x64/BuildAppSettings.dll b/build-tools/linux-x64/BuildAppSettings.dll
index 95b942a48..f3f7d80f9 100644
Binary files a/build-tools/linux-x64/BuildAppSettings.dll and b/build-tools/linux-x64/BuildAppSettings.dll differ
diff --git a/build-tools/linux-x64/BuildTemplates b/build-tools/linux-x64/BuildTemplates
index 38b514fdb..26c8afa3f 100755
Binary files a/build-tools/linux-x64/BuildTemplates and b/build-tools/linux-x64/BuildTemplates differ
diff --git a/build-tools/linux-x64/BuildTemplates.dll b/build-tools/linux-x64/BuildTemplates.dll
index 2952335bb..449142278 100644
Binary files a/build-tools/linux-x64/BuildTemplates.dll and b/build-tools/linux-x64/BuildTemplates.dll differ
diff --git a/build-tools/linux-x64/ConsoleDialog b/build-tools/linux-x64/ConsoleDialog
index 636dd088d..9688d04bf 100755
Binary files a/build-tools/linux-x64/ConsoleDialog and b/build-tools/linux-x64/ConsoleDialog differ
diff --git a/build-tools/linux-x64/ConsoleDialog.dll b/build-tools/linux-x64/ConsoleDialog.dll
index 032fb3525..fa878f1e7 100644
Binary files a/build-tools/linux-x64/ConsoleDialog.dll and b/build-tools/linux-x64/ConsoleDialog.dll differ
diff --git a/build-tools/linux-x64/ESBuild b/build-tools/linux-x64/ESBuild
index 41912328b..9697cf550 100755
Binary files a/build-tools/linux-x64/ESBuild and b/build-tools/linux-x64/ESBuild differ
diff --git a/build-tools/linux-x64/ESBuild.dll b/build-tools/linux-x64/ESBuild.dll
index 08a551630..6afa44ea6 100644
Binary files a/build-tools/linux-x64/ESBuild.dll and b/build-tools/linux-x64/ESBuild.dll differ
diff --git a/build-tools/linux-x64/ESBuildClearLocks b/build-tools/linux-x64/ESBuildClearLocks
index bb0a0a176..e51daae4c 100755
Binary files a/build-tools/linux-x64/ESBuildClearLocks and b/build-tools/linux-x64/ESBuildClearLocks differ
diff --git a/build-tools/linux-x64/ESBuildClearLocks.dll b/build-tools/linux-x64/ESBuildClearLocks.dll
index abfa93d26..9477d1aa4 100644
Binary files a/build-tools/linux-x64/ESBuildClearLocks.dll and b/build-tools/linux-x64/ESBuildClearLocks.dll differ
diff --git a/build-tools/linux-x64/FetchNuGetVersion b/build-tools/linux-x64/FetchNuGetVersion
index 077ee4a1f..23e5b6523 100755
Binary files a/build-tools/linux-x64/FetchNuGetVersion and b/build-tools/linux-x64/FetchNuGetVersion differ
diff --git a/build-tools/linux-x64/FetchNuGetVersion.dll b/build-tools/linux-x64/FetchNuGetVersion.dll
index ad6a822ce..36c28045e 100644
Binary files a/build-tools/linux-x64/FetchNuGetVersion.dll and b/build-tools/linux-x64/FetchNuGetVersion.dll differ
diff --git a/build-tools/linux-x64/GBTest b/build-tools/linux-x64/GBTest
index 9b0d563e7..a8aff4498 100755
Binary files a/build-tools/linux-x64/GBTest and b/build-tools/linux-x64/GBTest differ
diff --git a/build-tools/linux-x64/GBTest.dll b/build-tools/linux-x64/GBTest.dll
index 3c4b2d934..bb1bd89a3 100644
Binary files a/build-tools/linux-x64/GBTest.dll and b/build-tools/linux-x64/GBTest.dll differ
diff --git a/build-tools/linux-x64/RazorCopy b/build-tools/linux-x64/RazorCopy
index 9c59a3ed6..193ac0f86 100755
Binary files a/build-tools/linux-x64/RazorCopy and b/build-tools/linux-x64/RazorCopy differ
diff --git a/build-tools/linux-x64/RazorCopy.dll b/build-tools/linux-x64/RazorCopy.dll
index a92417c1d..966b47df2 100644
Binary files a/build-tools/linux-x64/RazorCopy.dll and b/build-tools/linux-x64/RazorCopy.dll differ
diff --git a/build-tools/linux-x64/Utilities.dll b/build-tools/linux-x64/Utilities.dll
index 8baf0b956..d89f2b9d0 100644
Binary files a/build-tools/linux-x64/Utilities.dll and b/build-tools/linux-x64/Utilities.dll differ
diff --git a/src/dymaptic.GeoBlazor.Core/Components/Layers/Layer.cs b/src/dymaptic.GeoBlazor.Core/Components/Layers/Layer.cs
index eafe7685d..c76a3ebfe 100644
--- a/src/dymaptic.GeoBlazor.Core/Components/Layers/Layer.cs
+++ b/src/dymaptic.GeoBlazor.Core/Components/Layers/Layer.cs
@@ -446,7 +446,7 @@ public async Task UpdateLayer()
_delayedUpdate = false;
// ReSharper disable once RedundantCast
- await JsComponentReference!.InvokeAsync("updateComponent", CancellationTokenSource.Token,
+ await JsComponentReference.InvokeAsync("updateComponent", CancellationTokenSource.Token,
(object)this);
}
diff --git a/src/dymaptic.GeoBlazor.Core/Components/MapComponent.razor.cs b/src/dymaptic.GeoBlazor.Core/Components/MapComponent.razor.cs
index 587f6ae31..c06259794 100644
--- a/src/dymaptic.GeoBlazor.Core/Components/MapComponent.razor.cs
+++ b/src/dymaptic.GeoBlazor.Core/Components/MapComponent.razor.cs
@@ -123,7 +123,7 @@ public Guid? ViewId
/// The Id of the relevant Layer for the MapComponent. Not always applicable to every component type.
///
[Parameter]
- public Guid? LayerId { get; set; }
+ public virtual Guid? LayerId { get; set; }
///
/// Indicates the visibility of the component. Default value: true.
@@ -884,6 +884,18 @@ protected override async Task OnInitializedAsync()
}
}
+ ///
+ protected override void OnParametersSet()
+ {
+ base.OnParametersSet();
+ LayerId ??= Layer?.Id;
+ Layer ??= Parent?.Layer;
+ View ??= Parent?.View;
+ CoreJsModule ??= Parent?.CoreJsModule;
+ ProJsModule ??= Parent?.ProJsModule;
+ }
+
+
///
protected override async Task OnAfterRenderAsync(bool firstRender)
{
@@ -1087,7 +1099,7 @@ private void CopyProperty(PropertyInfo prop, MapComponent deserializedComponent)
///
/// Previously updated parent components
///
- protected internal void UpdateGeoBlazorReferences(IJSObjectReference coreJsModule, IJSObjectReference? proJsModule,
+ protected virtual internal void UpdateGeoBlazorReferences(IJSObjectReference coreJsModule, IJSObjectReference? proJsModule,
MapView? view, MapComponent? parent, Layer? layer, int depth = 0, HashSet