-
7 Feb 2012 3:59 AM #1
currentMap.map is null ?!
currentMap.map is null ?!
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 :
Does anyone has a full example of Ext.Map with some markers ?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
});
Thank you
-
7 Feb 2012 7:56 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,666
- Vote Rating
- 435
The Google map instance should be saved to the map property of the Ext.Map instance when it has been rendered.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote