Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    50
    Vote Rating
    0
    Severance is on a distinguished road

      0  

    Default 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 :

    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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,015
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1