I am trying to load a geojson file using the following code:
capa = QgsVectorLayer("C:/...file.geojson","capa","ogr")
if not layer.isValid():
print("Layer failed to load!")
QgsProject.instance().addMapLayer(capa)
The geojson file contents a FeatureCollection, some points feature and a multiline. But just the poinst are rendered. Cannot load the multiline.
How can I do that stuff?