Post marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliessolved.tooltip
Replied In
js: [MapKit] Rotation is not available.
Hi,Thanks for the answer. The problem, indeed, was with WebGL. When I launched my application from a conda environment, OpenGL was not properly loaded.I downloaded from StackOverflow this code and used it to check the status of WebGL in my MacOS:import os, sys
from PyQt5 import QtCore, QtGui, QtWidgets, QtWebEngineWidgets
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
# app.setAttribute(QtCore.Qt.AA_UseOpenGLES) # nothing happens, you can comment it out
view = QtWebEngineWidgets.QWebEngineView()
view.settings().setAttribute(QtWebEngineWidgets.QWebEngineSettings.WebGLEnabled, True) # does not help too = (((
view.load(QtCore.QUrl("http://webglreport.com/?v=2"))
view.show()
sys.exit(app.exec_())When I leave the conda environnment, then WebGL 1 works in my application (WegGL 2 is not available). WebGL 1 seems to be enough for my application, now it rotates the map and shows the compass.Thanks a lot