From 455093c2877652634594bb3697c2d41132c6d51a Mon Sep 17 00:00:00 2001 From: Vincent Baaij Date: Sat, 19 Jun 2021 21:58:58 +0200 Subject: [PATCH] Add Geography to Indoor functionality (#48) * Add Geograpy to Indoor settings * Changes based on comments * Add options to comment/doc for Geography * Changed options.ts andindoor.ts to assign default to geography * Write default value for Geography in IndoorManagerOptionsJsonConverter Read geography value in IndoorManagerOptionsJsonConverter * Fix failing test --- .../Pages/Indoor/Index.razor | 1 + .../Indoor/IndoorManagerOptions.cs | 18 ++++++++++++++++-- .../typescript/indoor/indoor.ts | 9 +++++++-- .../typescript/indoor/options.ts | 1 + .../typings/Indoor/index.d.ts | 4 ++-- .../Indoor/IndoorManagerOptions.cs | 4 +++- 6 files changed, 30 insertions(+), 7 deletions(-) diff --git a/samples/AzureMapsControl.Sample/Pages/Indoor/Index.razor b/samples/AzureMapsControl.Sample/Pages/Indoor/Index.razor index 8aa0e7f..03d3ffb 100644 --- a/samples/AzureMapsControl.Sample/Pages/Indoor/Index.razor +++ b/samples/AzureMapsControl.Sample/Pages/Indoor/Index.razor @@ -25,6 +25,7 @@ var options = new AzureMapsControl.Components.Indoor.IndoorManagerOptions { + Geography = Configuration["AzureMaps:Geography"], LevelControl = levelControl, StatesetId = statesetId, TilesetId = Configuration["Indoor:TilesetId"] diff --git a/src/AzureMapsControl.Components/Indoor/IndoorManagerOptions.cs b/src/AzureMapsControl.Components/Indoor/IndoorManagerOptions.cs index 0ef8984..054dbc7 100644 --- a/src/AzureMapsControl.Components/Indoor/IndoorManagerOptions.cs +++ b/src/AzureMapsControl.Components/Indoor/IndoorManagerOptions.cs @@ -19,6 +19,12 @@ public struct IndoorManagerOptions /// public string StatesetId { get; set; } + /// + /// The geography of the Creator resources. + /// Possible values: "us" or "eu" + /// + public string Geography { get; set; } + /// /// The theme for indoor layer styles. /// @@ -34,7 +40,7 @@ internal class IndoorManagerOptionsJsonConverter : JsonConverter