-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleaflet.qml
43 lines (39 loc) · 1.17 KB
/
leaflet.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import QtQuick 2.8
import QtWebEngine 1.5
Item {
width: 1056
height: 800
// test for weather map not working
Item {
id:itm1
anchors.top:root.top
anchors.left:root.left
width:512
height:400
WebEngineView {
anchors.fill: parent
url: "http://mapshakers.com/projects/leaflet-pulse-icon/"
}
}
Item {
id:itm2
anchors.top:itm1.bottom
anchors.left:root.left
width:512
height:400
WebEngineView {
anchors.fill: parent
url: "https://openweathermap.org/weathermap?basemap=map&lang=en&cities=false&layer=radar&lat=29.6915&lon=-95.0474&zoom=9"
//https://openweathermap.org/weathermap?basemap=map&cities=true&layer=temperature&lat=51.4552&lon=-0.1816&zoom=5
profile: WebEngineProfile{
httpUserAgent: "Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"
httpAcceptLanguage : "en-US,en;q=0.5"
//AllowPersistentCookies:true // not working
}
onFeaturePermissionRequested: {
grantFeaturePermission(securityOrigin, feature, true);
//grantFeaturePermission(cookie, feature, false);
}
}
}
}