You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]
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
Logs/output
If applicable, add screenshots to help explain your problem.
output which i get:
output which i want:
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.
The text was updated successfully, but these errors were encountered:
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)
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
Logs/output
If applicable, add screenshots to help explain your problem.
output which i get:
output which i want:
Platform (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: