0
votes

I'm Using sencha Architect (sencha touch 2) and when creating a simple infowindow in a google map it displays all the google controls (undo arrow, +, -, zoom controls) next to the closing 'x'.

This only bugs in android (4.0.3) browser, in chrome or firefox on my pc works fine.

I uploaded the Sencha Architect project here

Here's the code for creating and displaying the infowindow.

var map = this.getGoogleMap().getMap();

var center = map.getCenter();

var iw = new google.maps.InfoWindow();

iw.setContent('<p> Test </p>');
iw.setPosition(center);         
iw.open(map);   

Any ideas on why is this happening?

EDIT: Here's how it looks enter image description here

1

1 Answers

1
votes

I got rid of the unwanted icons by adding 2 br tags after the content. Like so: "iw.setContent('Test [br][br]');" (The [] must be replaced with a <>) This bug came with the last google maps update aprox. a month ago.