PDA

View Full Version : [FIXED-134] Bug with Map if getLocation is not present or is false?



grantatwbx
7 Jul 2010, 1:52 PM
I am using a Ext.Map like this:


var mapView = new Ext.Map({
fullscreen: true,
title: 'Map',
getLocation: false,
mapOptions: {
zoom: 13,
center: myDestination,
mapTypeControl: false
}
});

There is a javascript error: "a is undefined" reported in the browser. However, if I set the "getLocation" to be true, it will not have the error and the map loads fine. This is problematic because I want to use the map but without having to ask permission to use the user's location (in fact, I am not even interested in their location).

evant
8 Sep 2010, 5:50 PM
I'm unable to reproduce this using the current version, can you confirm?



Ext.setup({
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
icon: 'icon.png',
glossOnIcon: false,

onReady: function() {
var sydney = new google.maps.LatLng(-33.8511, 151.2150);
var mapView = new Ext.Map({
fullscreen: true,
title: 'Map',
getLocation: false,
mapOptions: {
zoom: 13,
mapTypeControl: false,
center: sydney
}
});
}
});

BrendanC
4 Nov 2010, 11:23 AM
Fixed in the most recent release.