This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .angular-google-map-container { | |
| height: 500px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="map"> | |
| <!-- はまったポイント | |
| ui-gmap-google-mapの部分がgoogle-mapになっていることが多かった --> | |
| <ui-gmap-google-map center="map.center" zoom="map.zoom" draggable="true"> | |
| <!-- はまったポイント | |
| coords="'self'" を coords="self" という単純な記載ミスに20分悩む --> | |
| <ui-gmap-markers models="markers" coords="'self'" icon="'icon'"></ui-gmap-markers> | |
| </ui-gmap-google-map> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angular.module('MapApp') | |
| .controller('MapCtrl', function ($scope) { | |
| $scope.map = { | |
| // マップ初期表示の中心地 | |
| center: { | |
| latitude: 35.457624, | |
| longitude: 139.633337 | |
| }, | |
| // マップ初期表示の拡大 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angular | |
| .module('mapApp', [ | |
| 'ngAnimate', | |
| 'ngCookies', | |
| 'ngResource', | |
| 'ngRoute', | |
| 'ngSanitize', | |
| 'ngTouch', | |
| /** はまったポイント | |
| * この部分を「google-maps」としているサイトが多かった |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src='//maps.googleapis.com/maps/api/js?sensor=false'></script> | |
| <!-- build:js(.) scripts/vendor.js --> | |
| <!-- bower:js --> | |
| <script src="bower_components/angular/angular.js"></script> | |
| <script src="bower_components/angular-animate/angular-animate.js"></script> | |
| <script src="bower_components/angular-cookies/angular-cookies.js"></script> | |
| <script src="bower_components/angular-resource/angular-resource.js"></script> | |
| <script src="bower_components/angular-route/angular-route.js"></script> | |
| <script src="bower_components/angular-sanitize/angular-sanitize.js"></script> | |
| <script src="bower_components/angular-touch/angular-touch.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //"ほげ"であることの検証 | |
| $("form").hoge == "ほげ" | |
| //"アットウェア"を入力 | |
| $("form").hoge = "アットウェア" | |
| //"アットウェア"であることの検証 | |
| $("form").hoge == "アットウェア" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form> | |
| <input type="text" name="hoge" value="ほげ" /> | |
| </form> |