@@ -35,7 +35,7 @@ LocalComponents.Page {
35 readonly property alias tdModule: timeDatePanel
35 readonly property alias tdModule: timeDatePanel
37 function highlightTimezone(offset) {
37 function highlightTimezone(offset) {
38− highlightImage.source = "file:/usr/share/libtimezonemap/ui/timezone_" + offset + ".png";
38+ highlightImage.source = "data/timezonemap/timezone_" + offset + ".png";
41 // geo coords conversion functions (adapted from libtimezonemap)
41 // geo coords conversion functions (adapted from libtimezonemap)
@@ -146,8 +146,8 @@ LocalComponents.Page {
146 selectedTimeZone = timeZone;
146 selectedTimeZone = timeZone;
147 print("Clicked at city with coords:", longitude, latitude);
147 print("Clicked at city with coords:", longitude, latitude);
148 print("Highlight at (x,y):", longitudeToX(longitude, map.width), latitudeToY(latitude, map.height));
148 print("Highlight at (x,y):", longitudeToX(longitude, map.width), latitudeToY(latitude, map.height));
149− pinImage.x = longitudeToX(longitude, map.width) - 8;
149+ pinImage.x = longitudeToX(longitude, map.width) - pinImage.width / 2;
150− pinImage.y = latitudeToY(latitude, map.height) - 16;
150+ pinImage.y = latitudeToY(latitude, map.height) - pinImage.height;
@@ -227,7 +227,7 @@ LocalComponents.Page {
229 id: backgroundImage
229 id: backgroundImage
230− source: "file:/usr/share/libtimezonemap/ui/bg.png"
230+ source: "data/timezonemap/map.png"
231 sourceSize: Qt.size(map.width, map.height)
231 sourceSize: Qt.size(map.width, map.height)
232 fillMode: Image.PreserveAspectFit
232 fillMode: Image.PreserveAspectFit
233 smooth: true
233 smooth: true
@@ -251,8 +251,10 @@ LocalComponents.Page {
253 id: pinImage
253 id: pinImage
254− source: "file:/usr/share/libtimezonemap/ui/pin.png"
254+ source: "data/timezonemap/pin.png"
255 visible: selectedTimeZone != ""
255 visible: selectedTimeZone != ""
257+ height: units.dp(16)
256 z: map.z + 1
258 z: map.z + 1