-
How to use mapOptions?
I am trying to simply show a map with a marker set to the given geolocation. But the mapOptions doesn't seem to work, it just keeps showing some place in America. Am I doing it right?
Code:
{
xtype: 'map',
title: 'MyMap',
height: 202,
width: '100%',
mapOptions: 'center : new google.maps.LatLng(-37.20097, 145.08719)'
}
Thanks
-
The map options are an object so this would work:
Code:
{
xtype: 'map',
title: 'MyMap',
height: 202,
width: '100%',
mapOptions: {
center : new google.maps.LatLng(-37.20097, 145.08719)
}
}
Brice