今の環境では proxy 経由でないと、動かない
http_proxy=http://example.com:port bundle installこれで、上手くいった。
http_proxy=http://example.com:port bundle installこれで、上手くいった。
#import "AppDelegate.h"
#import <GoogleMaps/GoogleMaps.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
[GMSServices provideAPIKey:@"xxxxxx"]; // ここにキーを入れる
return YES;
}
#import "ViewController.h"
#import <GoogleMaps/GoogleMaps.h>
@interface ViewController ()
@end
@implementation ViewController {
GMSMapView *mapView_;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.86
longitude:151.20
zoom:6];
mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera];
mapView_.myLocationEnabled = YES;
self.view = mapView_;
// Creates a marker in the center of the map.
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position = CLLocationCoordinate2DMake(-33.86, 151.20);
marker.title = @"Sydney";
marker.snippet = @"Australia";
marker.map = mapView_;
}
8. 確認
GeoHex.registOnDrawHex((function () {
var infowin;
return function (map, zone, polygon, prop) {
var popinfo = !!prop.popinfo;
if (popinfo) {
if (infowin) infowin.close();
var myHtml = "hoge";
var point = new google.maps.LatLng(zone.lat, zone.lon);
infowin = new google.maps.InfoWindow({
content: myHtml,
position: point
});
infowin.open(map);
}
if (!polygon.assignedClickEvent) { // クリックイベントの多重登録を抑止
polygon.assignedClickEvent = google.maps.event.addListener(polygon, "click", function (event) {
var zone = GeoHex.getZoneByLocation(event.latLng.lat(), event.latLng.lng(), level);
zone.drawHex(map, {linecolor:"#FF0000",fillcolor:"#FF8a00",popinfo:1});
});
}
};
})());
こんな感じ。
geo hex test
http://sssslide.com/www.slideshare.net/sa2da/geohex1
GeoHex by sa2da is licensed under a Creative Commons 表示-継承 2.1 日本 License.
When you do want to insert a <br /> break tag using Markdown, you end a line with two or more spaces, then type return.
今個人的に熱い TrunkNotes のアップデートが来ました。
上の画像が前バージョンのアイコン
今回のアイコンはこちら
正直あまり好みではないですね(若干かっこ悪い気がする)。
と、アイコンのデザインが変わっただけでは無いようで(当然か)、今回アップデートされた内容は以下の通り、
・ デザインを一新
・ iPhone5 をサポート
・ 動作の高速化
となっています(iTunes の説明文より)。
デザインが変わり、白っぽくなった事により中身より、上下の主張が強く浮いた感じがして中身が見づらくなった印象があります。
また、ボタン等の配置も微妙に変わっているので、慣れるまでは違和感ありありです。
とか良いながら、同じ業界にいて思うのですが、バージョンアップを無料でやるって言うだけでも凄いので、意見なんか言える立場じゃ無いんですけどね。
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title> IME Control Test</title>
<script type='text/javascript' src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script type='text/javascript'>
function focusCtrl($scope) {
}
angular.module('app', [])
.directive('ngFocusImeOn', ['$parse', function($parse) {
return function(scope, element, attr) {
element.css({"ime-mode" : "active"});
};
}])
.directive('ngFocusImeOff', ['$parse', function($parse) {
return function(scope, element, attr) {
element.css({"ime-mode" : "inactive"});
};
}]);
</script>
</head>
<body>
<div ng-app="app">
<div ng-controller="focusCtrl">
IME ON <input ng-focus-ime-on />
IME OFF <input ng-focus-ime-off />
</div>
</div>
</body>
</html>



