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

Marker display position is misaligned and offset does not work. #42

Open
doraneko94 opened this issue Feb 13, 2024 · 1 comment
Open

Comments

@doraneko94
Copy link

I use two layers, MarkerLayer of flutter_map and DragMarkers of flutter_map_dragmarker, as shown in the code below.

FlutterMap(
  ...
  children: [
    ...
    MarkerLayer(markers: markers),
    DragMarkers(markers: dragMarkers,),
    ...
  ],
  ...
)

I have given these arguments, markers and dragMarkers, points with the same latitude and longitude, but in the actual display, the two points are displayed misaligned as shown in the figure.
(The blue icon is element of markers and the purple icon is element of dragMarkers.)
pins

I thought about adjusting the offset of dragMarker to correct the misalignment, but this parameter does not seem to work (i.e., changing the offset value from (0, 0) to (10, 10), for example, does not change the position of the icon).

Is this a bug in the library? Or is there any way to deal with this?
Now I'm using version ^6.0.0.

@ibrierley
Copy link
Owner

Have you tried using Alignment alignment ? Maybe produce a test example page others can use investigate.

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