I am using version 2 for Google Map. code is as below
var smallGoogleMap = new Ext.ux.GMapPanel({
xtype: 'gmappanel',
id : 'gSmallSiteMap',
width:'100%',
height:1000,
zoomLevel: 10,
gmapType: 'map',
mapConfOpts: ['enableScrollWheelZoom','enableDoubleClickZoom','enableDragging'],
mapControls: ['GSmallMapControl','GMapTypeControl','NonExistantControl'],
setCenter: {
lat: latitude,
lng: longitude,
marker:{ title: newTitle}
}
});
If I use geoCodeAddr as shown below in setCenter than I am getting controls on resulted google map but with above code(lat/lng) I am loosing controls.
setCenter: {
geoCodeAddr: newAdd,
marker:{ title: newTitle}
}
Any idea to resolve the issue ?
Well after search on web I found that the source code GMapPanel.js has to modify to get the desirable result.
Original a piss of code which needs modification is as below
It has to modify as below
We have to move “GEvent.bind” before setCenter is set to get controls on map.