Skip to content

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

@doraneko94

Description

@doraneko94

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions