やりたいこと | Mapbox example URL |
---|---|
アクセストークンの取得 | Access tokens |
地図を表示したい | Display a map |
ピンを立てたい | Attach a popup to a marker instance |
吹き出しを出したい | Attach a popup to a marker instance |
経路を表示したい | Add a GeoJSON line |
経路検索したい | Getting started with the Mapbox Directions API |
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
{"lastUpload":"2021-04-29T23:35:06.773Z","extensionVersion":"v3.4.3"} |
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
#!/bin/bash | |
before=$1; | |
after=$2; | |
switch=$3; | |
if [ $before = $after -a $switch = 1 ] ; then | |
echo "create empty commit!"; | |
git commit --allow-empty -m 'empty commit'; | |
fi |
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 id="map"></div> | |
Initialize a map in an HTML element with Mapbox GL JS.
See the example: https://docs.mapbox.com/mapbox-gl-js/example/simple-map/
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
// 既定値を上書きするには、このファイル内にキー バインドを挿入します | |
[ | |
{ | |
"_comment": "Markdownのプレビュー表示", | |
"key": "shift+cmd+m", | |
"command": "markdown.showPreview", | |
"when": "editorLangId == 'markdown'" | |
}, | |
{ | |
"key": "cmd+o", |
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
""""""""""""""""""""""""""""""""""""""" | |
""""" Basic Settings | |
""""""""""""""""""""""""""""""""""""""" | |
set noautofocus | |
set cncpcompletion | |
let scrollstep = 250 | |
let locale = "jp" | |
let barposition = "bottom" | |
map gR reverseImage | |
map : ; |
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
<?php | |
// 設定項目 | |
$client_id = '<client_id>' ; // クライアントID | |
$uuuent_secret = '<client_secret>' ; // クライアントシークレット | |
$redirect_uri = ( !isset($_SERVER['HTTPS']) || empty($_SERVER['HTTPS']) ? 'http://' : 'https://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ; // このプログラムを設置するURL | |
$scope = 'activity location' ; // アプリの権限 | |
// セッションスタート |
- 公式ドキュメント - Nature Inc を参考に、AccessTokenを取得。
- https://home.nature.global/homeから発行できる。
curl -H "accept: application/json" -H "Authorization: Bearer [取得したAccessToken]" -X GET "https://api.nature.global/[API Path]"
- ※
jq
コマンドで見るといい
NewerOlder