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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      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
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •