Skip to content

Instantly share code, notes, and snippets.

View bom-shibuya's full-sized avatar

bom-shibuya

  • Osaka, Japan
  • 23:42 (UTC +09:00)
View GitHub Profile
@bom-shibuya
bom-shibuya / AxisRotation.js
Last active March 16, 2018 02:09
For interaction.
// 軸回転用の公式
// http://fnorio.com/0098spherical_trigonometry1/spherical_trigonometry1.html
// http://ikeryou.hatenablog.com/entry/2018/01/07/104729
//
// @param {object} obj = {
// x, y, z, scale,
// distX, distY
// }
//
// 引数のangleには角度というかスピードが入る。
<?php
header("Content-Type: application/json; charset=utf-8");
class Ogp_getter {
private $url = null;
function __construct($url_strings) {
$this->url = $url_strings;
}
import loadGoogleMapsAPI from 'load-google-maps-api';
import Util from './Util.js';
import googleMapsStyle from './googleMapsStyle.js';
// google mainImg_philosophy-sp api
// target => strings (挿入するDOM)
// mapSettingObj => object = {
// center: {lat, lng}
// zoom
// }
export default class GoogleMapsGenerator {