What am I doing wrong with Map()
Moved
Unsolved
QML and Qt Quick
-
Hello,
I just want to add some MapTypes to my osm like the example shown on QtCreator but I am unable to do it.
Map{
id: map
anchors.fill: parent
plugin: Plugin{name: "osm"}
activeMapType: MapType.TerrainMapThis is what I am doing, the activeMapType always shows up an error.
Thank you in advance,
Vince -
@Vince94cat said in What am I doing wrong with Map():
activeMapType always shows up an error
you should tell what error...
Shouldn't activeMapType be inside Map {...}?Map { id: map anchors.fill: parent plugin: Plugin{name: "osm" activeMapType: MapType.TerrainMap }
-
You have to assign a MapType value for activeMapType. The value you are assigning is a property in MapType...
try this,
MapType {
style : MapType.TerrainMap
}