Sencha Touch - Google Map and centering a Marker
问题 Is it just me or does the google maps api seem to be on the quirky side? Trying to simply show a marker for some coordinates, and then center the screen on the marker. In my controller fired from a view: onGoogleMapRender: function (googleMap) { var long = record.get("Longitude"); var lat = record.get("Latitude"); var pos = new google.maps.LatLng(lat, long); var marker = new google.maps.Marker({ position: pos }); marker.setMap(googleMap); googleMap.setCenter(marker.getPosition()); googleMap