Coder Social home page Coder Social logo

leafletwebmap's Introduction

Ren Aoki

rensanrenren

Ren's GitHub stats

Top Langs

Connect with me:

_toypocket 100008318951584 mapbank

Tools:

My Skills

経歴

神奈川県横浜市出身。1998年11月18日生まれ。

2015.04 ~ 2017.6 Overseas Family School Singapore🇸🇬

2018.04 ~ 2022.3 青山学院大学地球社会共生学部 古橋研究室

2019.08 ~ 12 カセサート大学(タイ🇹🇭)

2021.06 ~

2022.05 ~

  • SEOライティング、YouTube、Tiktokの動画編集/台本作成を受注。
  • カード販売/オリジナルパック販売(古物商 第451370013866号)

2023.05 ~

2023.07 ~

2023.10 ~

  • Stellar Trails

2024.01 ~

Stellar Trails

NASA SPACE APPS CHALLENGE 2023 Global Nominee

横浜会場優勝(TechShiba) https://github.com/yudai1204/nasa-hackathon-2023-yokohama

大学活動履歴

ゼミ活動

IMG_3972 IMG_7401_Original

  • PLATEAU活用
  • 空間デザイン
  • マスクコンペ 一次審査通過
  • TEDxAoyamaGakuinU
    • 動画制作
    • MR空間制作(STYLY・Cluster)

TikTok

ゼミ論

「2020年度ゼミ論」タイトル:クロマキー撮影と編集における課題の整理と質の高い動画の撮影方法の提案

動画編集チーム V&F

オンラインハッカソン2021

ガチャガチャ説明書

118392323-12a1fe80-b674-11eb-888f-3d98190437e1 スクリーンショット 0003-05-17 17 18 30 スクリーンショット 2021-05-18 2 47 38

オンラインハッカソン2022

古橋ゼミ/ゼミ論2020

古橋ゼミ/ゼミ論2021

Toypocket

  • トレーディングカードに特化したSNS "Caraby(カラビー)" の開発。現在はサービス終了。
  • サービス名 : Caraby(カラビー)

購入画面

leafletwebmap's People

Contributors

rensanrenren avatar

Watchers

 avatar

leafletwebmap's Issues

ローカルサーバーで表示させる

ローカルサーバーをセットアップして使用する方法はいくつかありますが、以下にPythonとNode.jsを使用した2つの簡単な方法を示します。

1. Pythonを使用する方法:

Pythonには、シンプルなHTTPサーバーが組み込まれています。以下の手順でローカルサーバーを起動できます。

  1. コマンドプロンプトまたはターミナルを開きます。

  2. HTMLファイルが存在するディレクトリに移動します。

  3. Pythonのバージョンに応じて、以下のコマンドのいずれかを実行します。

    • Python 2.xの場合:

      python -m SimpleHTTPServer 8000
    • Python 3.xの場合:

      python -m http.server 8000
  4. ブラウザで http://localhost:8000 にアクセスします。

2. Node.jsを使用する方法:

Node.jsを使用する場合、http-serverというシンプルなHTTPサーバーパッケージを利用できます。

  1. Node.jsとnpm(Node.jsのパッケージマネージャ)がインストールされていることを確認します。

  2. コマンドプロンプトまたはターミナルを開き、以下のコマンドを実行してhttp-serverをグローバルにインストールします。

    npm install -g http-server
  3. HTMLファイルが存在するディレクトリに移動します。

  4. 以下のコマンドを実行してローカルサーバーを起動します。

    http-server -p 8000
  5. ブラウザで http://localhost:8000 にアクセスします。

これらの方法のいずれかを使用してローカルサーバーを起動した後、ブラウザで指定したアドレスにアクセスすることで、ローカルのHTMLファイルや関連するリソースを表示できます。

Leafletを使用してOSMを表示させる

Leafletを使用してOSMを表示させる

OSMの地図タイルのURLテンプレート

https://tile.openstreetmap.jp/{z}/{x}/{y}.png

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Sample Map</title>
    <!-- LeafletのCSS読み込み -->
    <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
    <!-- LeafletのCSS読み込み -->
    <script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>

</head>
<body>
    <!--地図を表示するdiv宣言-->
    <div id="map" style="height: 80vh;"></div>

    <script>
        //地図インスタンスを初期化(=div要素に地図画面が埋め込まれるようになる)
        const map = L.map('map', {
            center: [36.5, 137.1], //初期表示の地図中心の[緯度,経度]
            zoom: 5, //初期ズームレベル
        });

        //背景レイヤーインスタンス初期化(背景の初期条件を決めるのだと思う)
        const backgroundLayer = L.tileLayer(
            'https://tile.openstreetmap.jp/{z}/{x}/{y}.png', //OSMのタイルテンプレート
            {
                maxZoom: 19, 
                attribution: 
                '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',

            },
        );

        //地図インスタンスレイヤーへ追加
        map.addLayer(backgroundLayer);
    </script>

</body>
</html>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.