Skip to content

how change openhand sign mouse to finger sign #60

Open

Description

@khosrooo

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

Activity

  1. JaWeilBaum commented on Dec 9, 2023

    @JaWeilBaum
    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?

  2. khosrooo commented on Dec 13, 2023

    @khosrooo
    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

  3. CyBobber commented on Feb 16, 2024

    @CyBobber

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions