Skip to content

Instantly share code, notes, and snippets.

View hfu's full-sized avatar

Hidenori hfu

View GitHub Profile

Charites でスタイルを編集する

地図の見た目を変更するにはスタイルファイルを編集して下さい。Geolonia の Embed API では MapLibre GL JS スタイル と同じオプションやプロパティを使うことができます。

レイヤーについて

style.yml は下の様になっています。地図の見た目を変更するには、layers より下で読み込まれているレイヤーファイルを書き換えて下さい。

version: 8
{ … 省略 … }
@smellman
smellman / explain_fast.txt
Created March 22, 2019 08:55
OpenMapTiles postserve research at 2019/03/22.
Append (cost=4.08..275139.53 rows=16 width=32) (actual time=21.317..26.948 rows=16 loops=1)
-> Aggregate (cost=4.08..4.09 rows=1 width=32) (actual time=21.316..21.317 rows=1 loops=1)
-> Append (cost=0.00..3.95 rows=27 width=3447) (actual time=0.202..11.278 rows=27 loops=1)
-> Append (cost=0.00..3.54 rows=27 width=3447) (actual time=0.202..11.274 rows=27 loops=1)
-> Seq Scan on ne_110m_ocean (cost=0.00..1.03 rows=2 width=41832) (actual time=0.201..10.175 rows=2 loops=1)
Filter: ((geometry && '0103000000010000000500000093107C45F81B73C196107C45F81B73C193107C45F81B73C193107C45F81B734193107C45F81B734193107C45F81B734193107C45F81B734196107C45F81B73C193107C45F81B73C196107C45F81B73C1'::geometry) AND (st_asmvtgeom(geometry, 'BOX(-20037508.3427892 -20037508.3427893,20037508.3427892 20037508.3427892)'::box2d, 4096, 4, true) IS NOT NULL))
-> Seq Scan on ne_110m_lakes (cost=0.00..2.38 rows=25 width=376) (actual time=0
@miya0001
miya0001 / keyboad.md
Created November 6, 2016 04:56
キーボード入力

Ctrl+C と入力してください。

@frogcat
frogcat / 20150919.html
Last active September 19, 2015 19:34
地理院標高タイルを使った valhalla Elevation Service API Reference の実装 (ただし単一点のみ)
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>dem</title>
</head>
<body>
<pre id="pre">Please wait</pre>
<script>
function elevation(json, callback) {