Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with time slide and WebView2 Navigate2() #1082

Open
claudiof2023 opened this issue Oct 1, 2024 · 4 comments
Open

Problem with time slide and WebView2 Navigate2() #1082

claudiof2023 opened this issue Oct 1, 2024 · 4 comments

Comments

@claudiof2023
Copy link

claudiof2023 commented Oct 1, 2024

Hi,

The Microsoft Edge WebView2 Navigate2() method does not work with the time slide feature of the new map viewer.

This can be tested with a native application with embedded web content, using for example the FormWebView class. The steps below are only meant for a quick illustration of the problem.

Steps:

  1. Step through the following C# code to open a FormWebView:
    auxView = new FormWebView();

  2. Enable representation of data time stamps (see attachment 2-time_slide.png)

  3. Step through the following C# code to navigate to new coordinates:
    decimal north = 1250100.0;
    decimal east = 2645300.0;
    FormWebView auxView;
    auxView.Navigate2(east, north);

  4. The Form content does not slide to the new coordinate. It does without time slide.

2-time_slide

@claudiof2023 claudiof2023 changed the title Problem with time travel and WebView2 Navigate2() Problem with time slide and WebView2 Navigate2() Oct 1, 2024
@pakb
Copy link
Contributor

pakb commented Oct 2, 2024

what are you doing in the function auxView.Navigate2(east, north);?
the webapp should react to changes if they occur in the hash query.

Meaning if you change https://map.geo.admin.ch?center=x,y to https://map.geo.admin.ch?center=a,b it won't update but reload the entire app.

On the other hand if you do https://map.geo.admin.ch/#/map?center=x,y to https://map.geo.admin.ch/#/map?center=a,b it should update the map accordingly (this /#/map is very important, as it tells our Vue Router that you are on the map view, and that the parameters of this view have changed)

@claudiof2023
Copy link
Author

claudiof2023 commented Oct 2, 2024 via email

@pakb
Copy link
Contributor

pakb commented Oct 2, 2024

To be double sure it's not the issue, you might want to check for the position of either ?center= and &center (in case center is the first parameter, it will have a question mark instead of &)

If that doesn't fix the issue, I don't really know how I could debug this. We typically use standard browsers for our tests (Chrome, Firefox, Edge) and didn't have this issue at all

@claudiof2023
Copy link
Author

claudiof2023 commented Oct 2, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants