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

[FEATURE] Replicate Markers in all world copies #1999

Open
monsieurtanuki opened this issue Dec 12, 2024 · 1 comment
Open

[FEATURE] Replicate Markers in all world copies #1999

monsieurtanuki opened this issue Dec 12, 2024 · 1 comment
Labels
feature This issue requests a new feature

Comments

@monsieurtanuki
Copy link
Contributor

What do you want implemented?

Currently Markers are displayed only once (or not at all), even if the map displays several occurrences of the world.

A side-effect (called "teleportation") is that a Marker will appear in one occurrence of the world, then where the user scrolls a bit the Marker may "jump" into another occurrence of the world (typically the closest one to the screen center).
In the same spirit, close Markers may be displayed almost a world apart, because they were "affected" to a different world copy.

A solution would be to display all potentially visible Markers, which means duplicated Markers.

Same considerations apply to Polygons, Polylines and CircleMarkers.

cf. #1969 (comment)

What other alternatives are available?

No response

Can you provide any other information?

I started to code something interesting, with the following results.
Screenshot_1734004344
Screenshot_1734004389

Severity

Minimum: Not required for my use

@monsieurtanuki monsieurtanuki added the feature This issue requests a new feature label Dec 12, 2024
@monsieurtanuki
Copy link
Contributor Author

Done for Markers in #2000.

With a little bug though, evoked in #2000 (comment)

Separately, I've also noticed that onTap (and probably the rest of the handlers in MapOptions) callback in the Markers page in the example does not add the marker to the location tapped, if that location is not in the main world. It adds it to the closest point in the main world.

I've just tested again the "Markers" example, and could replicate the bug. For the record this example is blocked on a single world. I'd test a mix of the "Markers" example in multi-world, but flutter_map upgraded to the latest version of flutter, which isn't convenient for me at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue requests a new feature
Projects
Status: To do
Development

No branches or pull requests

1 participant