Versions

  • v14

    1/16/2024
    Open: Version
    Changes from v13 to v14
    +0
    -0
    ⦚ 36 unchanged lines ⦚
    ⦚ 36 unchanged lines ⦚
  • v13

    1/16/2024
    Open: Version
    Changes from v12 to v13
    +0
    -0
    ⦚ 36 unchanged lines ⦚
    ⦚ 36 unchanged lines ⦚
  • v12

    1/16/2024
    Open: Version
    Changes from v11 to v12
    +1
    -1
    ⦚ 17 unchanged lines ⦚
    var map = new maplibregl.Map({
    container: 'map',
    style: 'https://optgeo.github.io/nagi-global/style.json',
    center: [135, 35],
    zoom: 12
    ⦚ 14 unchanged lines ⦚
    ⦚ 17 unchanged lines ⦚
    var map = new maplibregl.Map({
    container: 'map',
    style: 'https://tile.openstreetmap.jp/styles/osm-bright-ja/style.json',
    center: [135, 35],
    zoom: 12
    ⦚ 14 unchanged lines ⦚
  • v11

    1/16/2024
    Open: Version
    Changes from v10 to v11
    +0
    -0
    ⦚ 36 unchanged lines ⦚
    ⦚ 36 unchanged lines ⦚
  • v10

    1/16/2024
    Open: Version
    Changes from v9 to v10
    +1
    -1
    ⦚ 17 unchanged lines ⦚
    var map = new maplibregl.Map({
    container: 'map',
    style: 'https://optgeo.github.io/unite-one/style.json',
    center: [135, 35],
    zoom: 12
    ⦚ 14 unchanged lines ⦚
    ⦚ 17 unchanged lines ⦚
    var map = new maplibregl.Map({
    container: 'map',
    style: 'https://optgeo.github.io/nagi-global/style.json',
    center: [135, 35],
    zoom: 12
    ⦚ 14 unchanged lines ⦚
  • v9

    1/16/2024
    Open: Version
    Changes from v8 to v9
    +1
    -1
    ⦚ 17 unchanged lines ⦚
    var map = new maplibregl.Map({
    container: 'map',
    style: 'https://optgeo.github.io/c2/style.json',
    center: [135, 35],
    zoom: 12
    ⦚ 14 unchanged lines ⦚
    ⦚ 17 unchanged lines ⦚
    var map = new maplibregl.Map({
    container: 'map',
    style: 'https://optgeo.github.io/unite-one/style.json',
    center: [135, 35],
    zoom: 12
    ⦚ 14 unchanged lines ⦚
  • v8

    1/16/2024
    Open: Version
    Changes from v7 to v8
    +0
    -0
    ⦚ 36 unchanged lines ⦚
    ⦚ 36 unchanged lines ⦚
  • v7

    1/16/2024
    Open: Version
    Changes from v6 to v7
    +1
    -1
    ⦚ 17 unchanged lines ⦚
    var map = new maplibregl.Map({
    container: 'map',
    style: 'https://tile.openstreetmap.jp/styles/osm-bright-ja/style.json',
    center: [135, 35],
    zoom: 12
    ⦚ 14 unchanged lines ⦚
    ⦚ 17 unchanged lines ⦚
    var map = new maplibregl.Map({
    container: 'map',
    style: 'https://optgeo.github.io/c2/style.json',
    center: [135, 35],
    zoom: 12
    ⦚ 14 unchanged lines ⦚
  • v6

    1/16/2024
    Open: Version
    +36
    -0

    import React from "npm:react";
    import { renderToString } from "npm:react-dom/server";

    export default async function(req: Request) {
    return new Response(
    renderToString(
    <html>
    <head>
    <title>Title</title>
    </head>
    <script src="https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js"></script>
    <link href="https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.css" rel="stylesheet" />
    <body style={{ width: "100vw", height: "100vh", margin: 0, padding: 0 }}>
    <div id="map" style={{ width: "100vw", height: "100vh", margin: 0, padding: 0 }}></div>
    <script
    dangerouslySetInnerHTML={{
    __html: `
    var map = new maplibregl.Map({
    container: 'map',
    style: 'https://tile.openstreetmap.jp/styles/osm-bright-ja/style.json',
    center: [135, 35],
    zoom: 12
    });
    `,
    }}
    />
    </body>
    </html>,
    ),
    {
    headers: {
    "Content-Type": "text/html; charset=utf-8",
    },
    },
    );
    }
hfu-react_maplibre.web.val.run
Updated: January 16, 2024