PDA

View Full Version : [CLOSED] Ext.Map mapOptions error



santony85
24 Mar 2012, 2:18 AM
Hi
when i type in mapOptions :
{center: new google.maps.LatLng(46.494995,-1.786845),
zoom : 17}

it's write in the file like :
mapOptions : '{center: new google.maps.LatLng(46.494995,-1.786845), \n zoom : 17}'

i must remove the single quot and the \n for make it work

aconran
24 Mar 2012, 3:23 PM
The problem is that we do not allow references to variables when configuring through the property grid.

You should create an overrides file and set mapOptions that way.

Phil.Strong
26 Mar 2012, 7:57 PM
I usually set this using code. See onListItemTap here: https://github.com/philstrong/citybars/blob/master/app/controller/Business.js