LoginSignup
1
2

More than 5 years have passed since last update.

GoogleMaps

Last updated at Posted at 2015-06-23

GoogleMaps機能をiOS、Androidに実装するメモです。

プラグイン追加

$ cd cordova
$ cordova plugin add plugin.google.maps --variable API_KEY_FOR_ANDROID="Android用キー" --variable API_KEY_FOR_IOS="iOS用キー"
$ cordova plugin add org.apache.cordova.geolocation

GoogleMapsを読み込む

<script type="text/javascript" charset="utf-8" src="https://maps.googleapis.com/maps/api/js"></script>

SenchaTouchのビュー

app/view/Map.js
// 地図
Ext.define('NearLife.view.Map', {
    extend: 'Ext.Map',
    id: 'id-view-map',
    xtype: 'view-map',
    requires: [
    ],
    config: {
        mapOptions: {
            scrollwheel: false,
            zoom: 12,
            minZoom: 2
        }
    }
});

実装済みアプリ

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2