You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We currently have in prod an Windows UNO app, we plan to release it for mac soon.
While doing some tests on the mac, we noticed when we moved the app window to a extenrnal/secondary screen the map seems to change it resolution, which causes:
Pixelated map
Widgets dissapear (probably get moved out of view)
Info event returning incorrect coordinates (looks like there is some offset)
To Reproduce
Steps to reproduce the behavior:
Run app with any map
Move app window to other display
Expected behavior
Map should not change
Screenshots
On main screen:
On secondary screen:
Let me know if theres any other info I can provide, as we are running on a tight schedule
Thanks!
The text was updated successfully, but these errors were encountered:
Thanks for you clear bug report. What you describe seems like a problem with PixelDensity. It may not be a Mac specific problem but a problem that shows if you work with two monitors with a different density. You can request the density in the MainPage of you app with:
var pixelDensity = XamlRoot?.RasterizationScale;
Could you check that? Perhaps you need to start the app in a specific screen to get a correct value.
I am testing on Windows and can not reproduce it there, but that may be because of my monitors.
Looking at our code just now I think it is more likely that this is a bug in SkiaSharp or Uno. We do not store the PixelDensity but request it on every iteration. I don't know what else we could do to fix this.
I also found another problem and that is that the mouse wheel event is not fired on my second monitor unless I have the pointer near the top left (it seems 1/16th of the screen area).
@pauldendulk. I checked the pixiel density and doesn't seem to change when switching screens, as it does on windows (just tested on both platforms). I'll raise an issue to UNO. Thanks for your help!
mcocaroUX
changed the title
[Mac] Map changes resoluion when moved to secondary screen
[Mac] Map changes resolution when moved to secondary screen
Feb 22, 2024
Mapsui Version
Mapsui.Uno.WinUI 4.1.3
Mapsui Platform
Mac, bug is not present on Windows
Device
Macbook Pro
macOS: Sonoma 14.2.1
MainScreen: Built-in 15,4" 2880x1800
SecondaryScreen: Generic monitor 1920x1080 24"
Describe the bug
We currently have in prod an Windows UNO app, we plan to release it for mac soon.
While doing some tests on the mac, we noticed when we moved the app window to a extenrnal/secondary screen the map seems to change it resolution, which causes:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Map should not change
Screenshots
![image](https://private-user-images.githubusercontent.com/94198647/306768471-4b0a5ed7-d7a1-45ef-b220-5b9771f43f22.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0NTI2MDIsIm5iZiI6MTcyMTQ1MjMwMiwicGF0aCI6Ii85NDE5ODY0Ny8zMDY3Njg0NzEtNGIwYTVlZDctZDdhMS00NWVmLWIyMjAtNWI5NzcxZjQzZjIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIwVDA1MTE0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM5OTY5ZWI1YzA2OTZkZTQ0Zjk3Mjk2NTQwN2YyNjRiNTQ1ZDZiMTFmZTFkMzUyMDRkMDkxM2NjNTk4ZTJjZjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.etPZTiTJnFdpvlftFJJmS6L69U8JX-UhL4d_WNxH_Z8)
On main screen:
On secondary screen:
![image](https://private-user-images.githubusercontent.com/94198647/306768558-92e9083c-11fc-49ce-b82c-8f990d214cc1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0NTI2MDIsIm5iZiI6MTcyMTQ1MjMwMiwicGF0aCI6Ii85NDE5ODY0Ny8zMDY3Njg1NTgtOTJlOTA4M2MtMTFmYy00OWNlLWI4MmMtOGY5OTBkMjE0Y2MxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIwVDA1MTE0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlhYTc5ZmVlMWE2NDg5OTZjMzdlYmZiOTE5MmIyZmM1ODQ4NjgwODIxMWFmNTQ5ODE3MWI2ZDExMWNjNmM1OWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.u7rWsTJ9TRh99fuvRY_rF6PzAWaEyQGBrbJ1FYzUaHc)
Let me know if theres any other info I can provide, as we are running on a tight schedule
Thanks!
The text was updated successfully, but these errors were encountered: