FidoX
8 Nov 2011, 12:19 PM
I've discovered an issue when you use the google map into a sencha touch application. The thing is that the zoom buttons,. the map type selectors (map, satellite) and even the close button for the infowindow it's not working with the sencha map component in several versions of android.
I've tested with 2.3.3 (galaxy and emulator), 2.2 (htc desire) and 3.1 (motorola xoom) you can not make zoom in/out because the buttons doesn't respond. If you click on a marker to open a infowindow, then you can not close it. If you click on a link into the infowindow it doesn't respond.
Its too hard to debug because in chrome doesn't occur, only with specific versions of android so I haven't available the javascript developer tools.
The test code simply create a map and put a marker in the middle so you can test that you can open but not close it.
Ext.application({
name: 'Test',
launch: function() {
Ext.create('Ext.Container', {
layout: 'card',
fullscreen: true,
items: [{
xtype: 'map',
layout: 'fit',
listeners: {
maprender: function(map) {
var latlng = new google.maps.LatLng(-34.397, 150.644);
map.setHtml(latlng);
var infowindow = new google.maps.InfoWindow({
content: 'content...'
});
var marker = new google.maps.Marker({
position: latlng,
map: map.map,
title:"Point title"
});
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map.map,marker);
});
}
}
}]
});
}
});
Im using SenchaTouch 2 DP 1. If you use the google map api alone works sucessfully. Anybody have the same issue?
I've tested with 2.3.3 (galaxy and emulator), 2.2 (htc desire) and 3.1 (motorola xoom) you can not make zoom in/out because the buttons doesn't respond. If you click on a marker to open a infowindow, then you can not close it. If you click on a link into the infowindow it doesn't respond.
Its too hard to debug because in chrome doesn't occur, only with specific versions of android so I haven't available the javascript developer tools.
The test code simply create a map and put a marker in the middle so you can test that you can open but not close it.
Ext.application({
name: 'Test',
launch: function() {
Ext.create('Ext.Container', {
layout: 'card',
fullscreen: true,
items: [{
xtype: 'map',
layout: 'fit',
listeners: {
maprender: function(map) {
var latlng = new google.maps.LatLng(-34.397, 150.644);
map.setHtml(latlng);
var infowindow = new google.maps.InfoWindow({
content: 'content...'
});
var marker = new google.maps.Marker({
position: latlng,
map: map.map,
title:"Point title"
});
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map.map,marker);
});
}
}
}]
});
}
});
Im using SenchaTouch 2 DP 1. If you use the google map api alone works sucessfully. Anybody have the same issue?