Click to search on your search term.
Subscribe to Fig Leaf Tutorials


Need help with a project? Contact us at sales@figleaf.com.
From code reviews to project "jumpstarts" and full life-cycle development, we've got you covered!
Check out our case studies!
Follow us on Twitter!
Click here to join our Facebook group!

Ready to upgrade your skills? Try these instructor-led classes in Washington, DC:
Ext JS 6 Bootcamp
12/04/2017

Loading the Google Maps API

Page of 168

You can load the Google Maps API via the Sencha Touch microloader framework by modifying your /path/to/app/app.json file as illustrated below on lines 14-17.

{
 "name": "FriendsWithBeer",
 "indexHtmlPath": "index.html",
 "url": null,
 "js": [
  {
   "path": "../touch/sencha-touch.js"
  },
  {
   "path": "app.js",
   "bundle": true,
   "update": "delta"
  },
  {
   "path": "http://maps.google.com/maps/api/js?sensor=true",
   "remote": true
  }
 ],
 "css": [
  {
   "path": "resources/css/app.css",
   "update": "delta"
  }
 ],
 "appCache": {
  "cache": [
    "index.html"
  ],
  "network": [
    "*"
  ],
  "fallback": []
 },
 "resources": [
   "resources/images",
   "resources/icons",
   "resources/startup"
  ],
  "ignore": [
    "\\.svn$"
  ],
  "archivePath": "archive",
  "buildPaths": {
    "testing": "build/testing",
    "production": "build/production",
    "package": "build/package",
    "native": "build/native"
  },
  "buildOptions": {
    "product": "touch",
    "minVersion": 3,
    "debug": false,
    "logger": false
  },
  "id": "59a30a3f-58a1-402c-b3a9-0d84b77359db"
}

Note: Sencha Architect will automatically reconfigure your app.json file to load the Google Maps API

Page of 168
comments powered by Disqus