kevinv1990
1 Dec 2010, 3:40 AM
Hey all,
I know it is possible to find the current location of the user with the Ext.Map and also with the plugin tracker of google. But now I want to use the current location (the longitude and latitude) on another place in the application, is this possible?
When i console.log my Ext.map, i find the position in it.
Object
additionalCls: Array[0]
events: Object
geo: Object
coords: P
va: 51.9126354
wa: 4.4927133
__proto__: P
events: Object
hasGeoLocation: true
highAccuracy: false
host: Object
marker: V
onError: function (){var f=b||arguments;if(a===true){f=Array.prototype.slice.call(arguments,0);f=f.concat(b)}else{if(Ext.isNumber(a)){f=Array.prototype.slice.call(arguments,0);var e=[a,0].concat(b);Array.prototype.splice.apply(f,e)}}return c.apply(d||window,f)}
onPosition: function (){var f=b||arguments;if(a===true){f=Array.prototype.slice.call(arguments,0);f=f.concat(b)}else{if(Ext.isNumber(a)){f=Array.prototype.slice.call(arguments,0);var e=[a,0].concat(b);Array.prototype.splice.apply(f,e)}}return c.apply(d||window,f)}
provider: Geolocation
trackSuspended: true
updateLocation: function (){var f=b||arguments;if(a===true){f=Array.prototype.slice.call(arguments,0);f=f.concat(b)}else{if(Ext.isNumber(a)){f=Array.prototype.slice.call(arguments,0);var e=[a,0].concat(b);Array.prototype.splice.apply(f,e)}}return c.apply(d||window,f)}
watchId: 127
__proto__: Object
id: "ext-comp-1033"
initialConfig: Object
mapOptions: Object
mons: Array[0]
plugins: Array[2]
renderData: Object
renderSelectors: Object
resumeUpdates: function (){var f=b||arguments;if(a===true){f=Array.prototype.slice.call(arguments,0);f=f.concat(b)}else{if(Ext.isNumber(a)){f=Array.prototype.slice.call(arguments,0);var e=[a,0].concat(b);Array.prototype.splice.apply(f,e)}}return c.apply(d||window,f)}
scroll: false
setHighAccuracy: function (){var f=b||arguments;if(a===true){f=Array.prototype.slice.call(arguments,0);f=f.concat(b)}else{if(Ext.isNumber(a)){f=Array.prototype.slice.call(arguments,0);var e=[a,0].concat(b);Array.prototype.splice.apply(f,e)}}return c.apply(d||window,f)}
suspendUpdates: function (){var f=b||arguments;if(a===true){f=Array.prototype.slice.call(arguments,0);f=f.concat(b)}else{if(Ext.isNumber(a)){f=Array.prototype.slice.call(arguments,0);var e=[a,0].concat(b);Array.prototype.splice.apply(f,e)}}return c.apply(d||window,f)}
traffic: Object
useCurrentLocation: true
__proto__: Object
I tried: console.log(mapdemo.geo.coords.va.Value);
but not working
Kevin
I know it is possible to find the current location of the user with the Ext.Map and also with the plugin tracker of google. But now I want to use the current location (the longitude and latitude) on another place in the application, is this possible?
When i console.log my Ext.map, i find the position in it.
Object
additionalCls: Array[0]
events: Object
geo: Object
coords: P
va: 51.9126354
wa: 4.4927133
__proto__: P
events: Object
hasGeoLocation: true
highAccuracy: false
host: Object
marker: V
onError: function (){var f=b||arguments;if(a===true){f=Array.prototype.slice.call(arguments,0);f=f.concat(b)}else{if(Ext.isNumber(a)){f=Array.prototype.slice.call(arguments,0);var e=[a,0].concat(b);Array.prototype.splice.apply(f,e)}}return c.apply(d||window,f)}
onPosition: function (){var f=b||arguments;if(a===true){f=Array.prototype.slice.call(arguments,0);f=f.concat(b)}else{if(Ext.isNumber(a)){f=Array.prototype.slice.call(arguments,0);var e=[a,0].concat(b);Array.prototype.splice.apply(f,e)}}return c.apply(d||window,f)}
provider: Geolocation
trackSuspended: true
updateLocation: function (){var f=b||arguments;if(a===true){f=Array.prototype.slice.call(arguments,0);f=f.concat(b)}else{if(Ext.isNumber(a)){f=Array.prototype.slice.call(arguments,0);var e=[a,0].concat(b);Array.prototype.splice.apply(f,e)}}return c.apply(d||window,f)}
watchId: 127
__proto__: Object
id: "ext-comp-1033"
initialConfig: Object
mapOptions: Object
mons: Array[0]
plugins: Array[2]
renderData: Object
renderSelectors: Object
resumeUpdates: function (){var f=b||arguments;if(a===true){f=Array.prototype.slice.call(arguments,0);f=f.concat(b)}else{if(Ext.isNumber(a)){f=Array.prototype.slice.call(arguments,0);var e=[a,0].concat(b);Array.prototype.splice.apply(f,e)}}return c.apply(d||window,f)}
scroll: false
setHighAccuracy: function (){var f=b||arguments;if(a===true){f=Array.prototype.slice.call(arguments,0);f=f.concat(b)}else{if(Ext.isNumber(a)){f=Array.prototype.slice.call(arguments,0);var e=[a,0].concat(b);Array.prototype.splice.apply(f,e)}}return c.apply(d||window,f)}
suspendUpdates: function (){var f=b||arguments;if(a===true){f=Array.prototype.slice.call(arguments,0);f=f.concat(b)}else{if(Ext.isNumber(a)){f=Array.prototype.slice.call(arguments,0);var e=[a,0].concat(b);Array.prototype.splice.apply(f,e)}}return c.apply(d||window,f)}
traffic: Object
useCurrentLocation: true
__proto__: Object
I tried: console.log(mapdemo.geo.coords.va.Value);
but not working
Kevin