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

Unable to show MAP on IOS devices (iPhone, iPad) with Flet v0.25.2 #4603

Open
1 task done
Michel7GitHub opened this issue Dec 20, 2024 · 1 comment
Open
1 task done

Comments

@Michel7GitHub
Copy link

Duplicate Check

Describe the bug

On Windows 11, Flet v0.25.2 & Flet App 0.24.1
I use a new .venv
I use the lastest available IOS Flet App version which is 0.24.1 (Could it be the problem ?) on my iPhone and iPad.
Unable to show MAP on IOS devices. It shows a grey colored screen.
... but it works well on Windows.
and it works well on IOS with previous flet v0.24.1

He is code sample I use :

import flet as ft
import flet.map as map

def main(page: ft.Page):

    page.add(
        map.Map(
            expand=True,
            initial_center=map.MapLatitudeLongitude(15, 10),
            initial_zoom=5,
            interaction_configuration=map.MapInteractionConfiguration(
                flags=map.MapInteractiveFlag.ALL & ~map.MapInteractiveFlag.ROTATE
            ),
            layers=[
                map.TileLayer(
                    url_template="https://tile.openstreetmap.org/{z}/{x}/{y}.png",
                    on_image_error=lambda e: print("TileLayer Error"),
                ),
                map.MarkerLayer(
                    markers=[
                        map.Marker(
                            content=ft.Icon(ft.Icons.LOCATION_ON),
                            coordinates=map.MapLatitudeLongitude(15, 10),
                        ),
                    ],
                )
            ],
        ),
    )

ft.app(target=main)

Code sample

Code
[Paste your code here]

To reproduce

Execute code sample

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

Windows 11

Flet version

0.25.2

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

@lastdayafter
Copy link

Same problem on Android devices.

Flet 0.25.2, Flet app SDK 0.24.1

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