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

the precision of latitude and longitude in Mapview not accurate #65

Open
venkataraja705 opened this issue Feb 21, 2023 · 0 comments
Open

Comments

@venkataraja705
Copy link

venkataraja705 commented Feb 21, 2023

Describe the bug
i was using a dragresizable:rectangle where i was trying to get the lat and lon on all four directions
where the position is going little above when i try to get the lat&lon data using using the API mapview.get_latlon_at()

To Reproduce
Code example showing the issue:

KV=
<DragAndResizeLabel
id: drawresize
# Define the properties for the DragLabel
drag_rectangle: self.x, self.y, self.width, self.height
drag_timeout: 10000000
drag_distance: 0
draw_resize_border: True
resize_border_width: 2
resize_border_color: [1,0,0,1]

MDScreen:
name: "Configure"
MDBoxLayout:
orientation: "vertical"
MapView:
id: mapview
zoom: 12
MapMarkerPopup:
id: mapids

def get_coordinate(self):

point=self.root.ids.mapview.get_latlon_at(self.selection_rectangle.drag_rect_x , self.selection_rectangle.drag_rect_y )

top_left=self.root.ids.mapview.get_latlon_at(self.selection_rectangle.drag_rect_x+0 , self.selection_rectangle.drag_rect_y +self.selection_rectangle.drag_rect_height)

        bottom_right=self.root.ids.mapview.get_latlon_at(self.selection_rectangle.drag_rect_x+self.selection_rectangle.drag_rect_width,self.selection_rectangle.drag_rect_y)

top_right=self.root.ids.mapview.get_latlon_at(self.selection_rectangle.drag_rect_x+self.selection_rectangle.drag_rect_width , self.selection_rectangle.drag_rect_y +self.selection_rectangle.drag_rect_height-55)

Expected behavior
A clear and concise description of what you expected to happen.
#below is the image where i was plotting the points on all corners of window
image

Logs/output
If applicable, add screenshots to help explain your problem.
output which i get:
show_coordinates

output which i want:
image

Platform (please complete the following information):

  • OS: windows 10
  • Python version: 3.9
  • release or git branch/commit

Additional context
Add any other context about the problem here.

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

1 participant