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

Changing the Map's Interactivity has no effect #3973

Closed
1 task done
ndonkoHenri opened this issue Sep 12, 2024 Discussed in #3958 · 3 comments · Fixed by #3976
Closed
1 task done

Changing the Map's Interactivity has no effect #3973

ndonkoHenri opened this issue Sep 12, 2024 Discussed in #3958 · 3 comments · Fixed by #3976
Assignees
Labels
bug Something isn't working controls has reproducible steps Issue is reproducible

Comments

@ndonkoHenri
Copy link
Contributor

Discussed in #3958

Originally posted by Michel7GitHub September 10, 2024

Question

I'm unable to disable Map Rotation. I test with Flet App on Mobile (iPad & iPhone). I used Windows 11, Flet versions 0.24.1 (both IOS and Windows). I also tried map.MapInteractiveFlag.NONE without success.
Here is the code I use:

import flet as ft
import flet.map as map

def main(page: ft.Page):

    page.add(
        map.Map(
            expand=True,
            configuration=map.MapConfiguration(
                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

No response

Error message

No response

------------------------------------------------------

  • I have searched for answers to my question both in the issues and in previous discussions.
@ndonkoHenri ndonkoHenri added help wanted Extra attention is needed bug Something isn't working controls has reproducible steps Issue is reproducible and removed help wanted Extra attention is needed labels Sep 12, 2024
@ndonkoHenri ndonkoHenri changed the title Changing the Map's Interactivity has no effect on Desktop Changing the Map's Interactivity has no effect Sep 12, 2024
@ndonkoHenri

This comment was marked as outdated.

@Michel7GitHub
Copy link

it doesn't work neither in IOS, Windows or WEB_BROWSER

@ndonkoHenri ndonkoHenri self-assigned this Sep 12, 2024
@ndonkoHenri ndonkoHenri moved this from 🆕 New to 🏗 In progress in Flet Development Sep 12, 2024
@ndonkoHenri
Copy link
Contributor Author

Found the issue.
Coming up with a fix.

@ndonkoHenri ndonkoHenri moved this from 🏗 In progress to 👀 In review in Flet Development Sep 23, 2024
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Flet Development Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working controls has reproducible steps Issue is reproducible
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants