summaryrefslogtreecommitdiffstats
path: root/examples/declarative/webview/content/Mapping/map.html
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/webview/content/Mapping/map.html')
-rwxr-xr-xexamples/declarative/webview/content/Mapping/map.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/declarative/webview/content/Mapping/map.html b/examples/declarative/webview/content/Mapping/map.html
index 72f426a..a8726fd 100755
--- a/examples/declarative/webview/content/Mapping/map.html
+++ b/examples/declarative/webview/content/Mapping/map.html
@@ -33,9 +33,14 @@
}
if (map)
req.bounds = map.getBounds()
+ window.qml.status = "Loading";
geocoder.geocode(req, function(results, status) {
- if (status == google.maps.GeocoderStatus.OK)
+ if (status == google.maps.GeocoderStatus.OK) {
+ window.qml.status = "Ready";
goToLatLng(results[0].geometry.location,results[0].geometry.bounds);
+ } else {
+ window.qml.status = "Error";
+ }
});
}
}