Hybrid View
-
27 Nov 2012 3:44 AM #1
Unanswered: How to use mapOptions?
Unanswered: 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?
ThanksCode:{ xtype: 'map', title: 'MyMap', height: 202, width: '100%', mapOptions: 'center : new google.maps.LatLng(-37.20097, 145.08719)' }
-
27 Nov 2012 9:27 AM #2
The map options are an object so this would work:
BriceCode:{ xtype: 'map', title: 'MyMap', height: 202, width: '100%', mapOptions: { center : new google.maps.LatLng(-37.20097, 145.08719) } }Brice Mason
Front End Developer
Modus Create
@bricemason
bricemason.com
Sencha Touch Screencasts
Vimeo - Sencha Touch Channel
Github Projects:
Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.
Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.
Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.


Reply With Quote