PDA

View Full Version : currentMap.map is null ?!



Severance
7 Feb 2012, 3:59 AM
hello,

I try to setup an Ext.Map :

this.currentMap= new Ext.Map({'useCurrentLocation': true});
console.log(this.currentMap);

That show me that the property this.currentMap.map is null !

But this.currentMap.map is used for markers so it can't be null :


var location = new google.maps.LatLng(45.758796,4.834607);

var marker = new google.maps.Marker({
map: this.currentMap.map,
title: 'Marker Title',
position: location
});

Does anyone has a full example of Ext.Map with some markers ?

Thank you

mitchellsimoens
7 Feb 2012, 7:56 AM
The Google map instance should be saved to the map property of the Ext.Map instance when it has been rendered.