PyqtletΒΆ

pyqtlet brings Leaflet maps to PyQt5.

Leaflet is the most popular mapping library on the web. It has most mapping features that you might need, excellent documentation, and a host of plugins. In contstruction and design, pyqtlet attempts to mimic the official Leaflet API as much as possible.

pyqtlet allows you to bring in these leaflet maps into PyQt5 in just a couple of lines. It provides a mapWidget (which is a QWidget) as well as a namespace (L) in order to mimic the Leaflet API.

from pyqtlet import L, MapWidget

class Application(QMainWindow):
    ...
    self.mapWidget = MapWidget()
    self.map = L.map(self.mapWidget)
    self.map.setView([12.97, 77.59], 10)
    ...
    self.layout.add(self.mapWidget)

If you have are just starting out, you might want to start off with the Getting Started page.