[Commits] r2582 - sandbox/cmoullet/ux/GeolocationAPI/examples
commits at geoext.org
commits at geoext.org
Wed Jan 26 17:53:50 CET 2011
Author: cmoullet
Date: 2011-01-26 17:53:49 +0100 (Wed, 26 Jan 2011)
New Revision: 2582
Modified:
sandbox/cmoullet/ux/GeolocationAPI/examples/geolocationapimobileexample.html
sandbox/cmoullet/ux/GeolocationAPI/examples/geolocationapimobileexample.js
Log:
Set the timeout to 30s
Modified: sandbox/cmoullet/ux/GeolocationAPI/examples/geolocationapimobileexample.html
===================================================================
--- sandbox/cmoullet/ux/GeolocationAPI/examples/geolocationapimobileexample.html 2011-01-25 08:52:35 UTC (rev 2581)
+++ sandbox/cmoullet/ux/GeolocationAPI/examples/geolocationapimobileexample.html 2011-01-26 16:53:49 UTC (rev 2582)
@@ -47,6 +47,6 @@
</head>
<body onload='init();'>
<div id="map"></div>
-<div id="positionInfo"><img src="ajax-loader.gif">...getting location...</div>
+<div id="positionInfo"><img src="ajax-loader.gif">...getting location (timeout after 30s)...</div>
</body>
</html>
Modified: sandbox/cmoullet/ux/GeolocationAPI/examples/geolocationapimobileexample.js
===================================================================
--- sandbox/cmoullet/ux/GeolocationAPI/examples/geolocationapimobileexample.js 2011-01-25 08:52:35 UTC (rev 2581)
+++ sandbox/cmoullet/ux/GeolocationAPI/examples/geolocationapimobileexample.js 2011-01-26 16:53:49 UTC (rev 2582)
@@ -12,7 +12,7 @@
var GeolocationAPIControl = new OpenLayers.Control.GeolocationAPI({mode: 'position',
displayPosition: false,
displayAccuracy: true,
- geolocationOptions: {timeout:5000}});
+ geolocationOptions: {timeout:30000}});
map.addControl(GeolocationAPIControl);
var layer = new OpenLayers.Layer.OSM("OSM");
More information about the Commits
mailing list