mkouhia / dearpygui-map Goto Github PK
View Code? Open in Web Editor NEWMap widget for Dear PyGui
Home Page: https://pypi.org/project/dearpygui-map/
License: MIT License
Map widget for Dear PyGui
Home Page: https://pypi.org/project/dearpygui-map/
License: MIT License
Which item is best for init return value? This is the item for which the user will set callbacks. Maybe the rect?
How would it be possible to set clicked coordinates for app_data?
Refer also to #11
Test all compute methods. For dpg interaction, try to see if tests can be done without actually starting dpg.
Start downloading the visible tiles (first to come out of the queue), then add surrounding ones row by row
class TileServer:
...
def with_api_key(api_key: str) -> TileServer:
"""Return new instance with API key set"""
...
Include at least basic usage and description
Hey, dearpygui-map looks like it could be a nice addition to the Dear PyGui showcase. Would you be willing to make a short GIF (<8Mb) of the app?
I'm not familiar with poetry, but I cannot get the app to run on my computer or I'd probably make the GIF myself.
Sometiimes, first tile is not displayed (top left corner) and following error message is displayed:
ERROR:root:<built-in function pop_container_stack> returned a result with an exception set
Exception: Error: [1009] Message: No container to pop.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/mikko/Documents/softaprojektit/dearpygui_map/dearpygui_map/io.py", line 55, in run
self.callback(result)
File "/home/mikko/Documents/softaprojektit/dearpygui_map/dearpygui_map/widget.py", line 198, in draw_tile
tile.draw_image(parent=self.tile_draw_node_id)
File "/home/mikko/Documents/softaprojektit/dearpygui_map/dearpygui_map/widget.py", line 249, in draw_image
with dpg.texture_registry():
File "/home/mikko/.pyenv/versions/3.10.2/lib/python3.10/contextlib.py", line 142, in __exit__
next(self.gen)
File "/home/mikko/.cache/pypoetry/virtualenvs/dearpygui-map-AAtoTuFr-py3.10/lib/python3.10/site-packages/dearpygui/dearpygui.py", line 2523, in texture_registry
internal_dpg.pop_container_stack()
SystemError: <built-in function pop_container_stack> returned a result with an exception set
Disable panning/zooming from constructor. Hide handler.
Enable switching tile server from context menu
server_id,X,y,z,expiry,blob
, index on server_id,x,y,zOne connection per thread
Free zooming, switch level when scale factor would be >1 or <0.5
Set tile server in constructor
Even in 0.1.0, api should be somewhat sane.
Try to follow dearpygui conventions for context managers and add_
methods
Include coverage
Start downloading the visible tiles (first to come out of the queue), then add surrounding ones row by row.
See also #17.
First available feature: marker without data. Add more features later.
At first, no user interaction is required. Make separate issue of that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.