Results 1 to 2 of 2

Thread: currentMap.map is null ?!

    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
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Vote Rating
    1391
      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 @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •