JaWeilBaum / pyqtlet2

pyqtlet2 extends pyqtlet which initially brought Leaflet maps to PyQt5 and PySide6.
Other
37 stars 19 forks source link

how change openhand sign mouse to finger sign #60

Open khosrooo opened 8 months ago

khosrooo commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 6 months ago

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