Hi, I just discovered the pyqtlet2 package. I have tried the basic example, and then try and add the fitBounds method for the map widget but it does not have any effect. I am doing something wrong?
`import os
import sys
os.environ['QT_API'] = 'pyqt5'
from qtpy.QtWidgets import QApplication, QVBoxLayout, QWidget
from pyqtlet2 import L, MapWidget
if name == 'main':
app = QApplication(sys.argv)
widget = MapWindow()
sys.exit(app.exec_())`
I am trying to make a background layer to display behind a QGrapchisView lines and plots. So the fitBounds method would make the mapwidget scene be the same as the QGrapicsView scene rect.
Hi, I just discovered the pyqtlet2 package. I have tried the basic example, and then try and add the fitBounds method for the map widget but it does not have any effect. I am doing something wrong?
`import os import sys os.environ['QT_API'] = 'pyqt5' from qtpy.QtWidgets import QApplication, QVBoxLayout, QWidget from pyqtlet2 import L, MapWidget
class MapWindow(QWidget): def init(self):
Setting up the widgets and layout
if name == 'main': app = QApplication(sys.argv) widget = MapWindow() sys.exit(app.exec_())`
I am trying to make a background layer to display behind a QGrapchisView lines and plots. So the fitBounds method would make the mapwidget scene be the same as the QGrapicsView scene rect.
Thank you for any help.