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

how change openhand sign mouse to finger sign #60

Open
khosrooo opened this issue Dec 9, 2023 · 3 comments
Open

how change openhand sign mouse to finger sign #60

khosrooo opened this issue Dec 9, 2023 · 3 comments

Comments

@khosrooo
Copy link

khosrooo commented Dec 9, 2023

hello ,pyqtlet is so amazing, thanku for share it
i design a gui with pyqt5 when click on map drone go to lat and long is mouse clicked
but i have a problem
my mouse sign is openhand , when mouse click, the sign is still openhand ,but when mouse is hangover marker is finger sign
i need when click the the mouse sign convert from openhand to finger hand
is it possible ??
Thank u

@JaWeilBaum
Copy link
Owner

Hi @khosrooo ,
I'm having an issue fully following your problem description. So you have the problem that you can't select a point on the map? I never encountered an issue with openhand or hangover. Can you provide more details, like a screenshot or so?

@khosrooo
Copy link
Author

Thank u so much for responding
i solved thats problem
but i have a new problem
is it possible to download tile from google map not OpenStreetMap?
can download a tile in a folder beacuse i want in a offline mode?
Thank u Dear @JaWeilBaum

@CyBobber
Copy link

Dear khosrooo

This is possible. The best you can do is building up a stack with Apache24, mapproxy and then Python and pyqtlet2:

  1. At first you have to download or create a set of tiles in the format i.e. http://a.tile.openstreetmap.org/%(z)s/%(x)s/%(y)s.png and store them in the directory C:/Apache24/htdocs. (Apache24 = port 8080)
  2. When you set up mapproxy (port 8081) in order to interpret the tiles in the right way i.e. url: http://localhost:8080/osm_tiles/%(z)s/%(x)s/%(y)s.png
  3. Setup pyqtlet2 and PyQ6 to read the tiles as follows:
    L.tileLayer('http://localhost:8081/osm_grid/{z}/{x}/{y}.png').addTo(self.map)

Please be aware of the license agreements of Google maps and OpenStreetMap to download tiles. Both services are free for use, but download of tiles NOT.

In order to be successful, I would suggest to study the mapproxy documentation and Apache24. It is a whole lot of reading, but it worths!

Good luck

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

3 participants