2025-09-27 FOSS4G Hokkaido 2025
湯谷啓明
Shiny(R のウェブアプリケーションフレームワーク)前提の話になって、ちょっとマニアックすぎるので省略。 気になる人は懇親会で話しましょう!
maplibre()
mapboxgl()
maplibre() |> set_projection("globe")
maplibre( center = c(141.359719, 43.071776), zoom = 13 )
# 地理院地図のスタイル gsi_style <- "https://gsi-cyberjapan.github.io/gsivectortile-mapbox-gl-js/pale.json" maplibre( style = gsi_style, center = c(141.359719, 43.071776), zoom = 13 )
maplibre( style = gsi_style, center = c(141.359719, 43.071776), zoom = 16, pitch = 75, bearing = 136, )
maplibre() |> set_projection("globe") |> fly_to( center = c(141.359719, 43.071776), zoom = 18, pitch = 75, bearing = 136 )
(リロードしないと動かないかも…)
sf
map |> add_circle_layer( id = "chika", source = data, circle_radius = 8, circle_opacity = 0.7 )
L02_006
pal <- interpolate_palette( data = data, column = "L02_006", method = "quantile", n = 4, palette = scales::viridis_pal(option = "F", direction = -1) )
map |> add_circle_layer( id = "chika", source = data, circle_radius = 8, circle_opacity = 0.7, circle_color = pal$expression )