Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Google Maps Error

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #11
    Ext JS Premium Member
    Join Date
    Sep 2008
    Posts
    157

    Default

    Thanks Richardvd,
    this solve my problem.
    Luca



    Quote Originally Posted by richardvd View Post
    Under your project directory, there is an overrides folder. In that folder, create a file named Override.mixin.Mashup.js and paste the code in there. Replace MY_APIKEY by your own Google Maps API key.

    After dragging the Ext.Map component to your canvas in Sencha Architect, you may notice that the Google Maps API gets added as a resource. This is a bug, because as of Ext 6.2 (Modern) the Ext.Map component already loads the Google Maps API on its own. So you should delete the Google Maps API resource in the Project Inspector.

    If all is set up correctly you should not see any warnings in your browser's Javascript console while displaying a Google Map in your Modern app.

  2. #12
    Sencha Premium User dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,242

    Default

    IMHO the requiredScripts should be configured by the google maps api object in SA


    that way you can set your key, so in SA, I'd create the override to REMOVE the requiredScripts, then use the configurable 'google maps api' for projects.

    that way you can just include the override without settings,

    Code:
    Ext.define('Override.mixin.Mashup', {
        override: 'Ext.mixin.Mashup',
        
        onClassMixedIn: function (targetClass) {
            if (targetClass.$className === 'Ext.ux.google.Map') {
                targetClass.prototype.requiredScripts = []
            }
            this.callParent([targetClass]);
        } 
    });
    Cloud Application Architect

    Sencha Specialist / Sencha MVP / Sencha Technical Trainer
    ExtJs Developer + Contributor since 0.2.2 - Champion of the per developer license.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 2
    Last Post: 19 May 2014, 8:54 PM
  2. Google maps in Sencha gives error on Android
    By nickyhaze in forum Sencha Touch 2.x: Q&A
    Replies: 8
    Last Post: 22 Mar 2012, 2:27 AM
  3. google.maps.MapTypeId Error with GMapPanel3
    By europe72 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 28 Sep 2011, 1:45 AM

Tags for this Thread

Posting Permissions

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