PDA

View Full Version : Problem with Map



Spongerusher
4 Jan 2011, 7:55 AM
Hello,

Just a simple question, why if I just add "useCurrentLocation:true" in the kitchensink map exemple nothing happens?



demos.Map = new Ext.Panel({
layout: 'fit',
items: [{
xtype: 'map'
,useCurrentLocation:true
}]
});


It seems geocalisation doesn't work here but I cant' see why

Spongerusher
5 Jan 2011, 1:39 AM
Nobody has an answer ?
Did you try it ?

jep
19 Jan 2011, 1:00 PM
FYI, there are some bugs that cause it to not work. See here:

http://www.sencha.com/forum/showthread.php?119688-OPEN-695-Default-Ext.Map-GeoLocation-object-is-initialized-with-an-invalid-option

Here's a thread where I come up with an example of how to get it to work:
http://www.sencha.com/forum/showthread.php?121673-Get-current-location-on-map