-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ffb5b83
commit 10c5e19
Showing
7 changed files
with
2,424 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,6 @@ kino_maplibre-*.tar | |
|
||
# Temporary files, for example, from tests. | ||
/tmp/ | ||
|
||
# Node modules. | ||
assets/*/node_modules/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
import "https://cdn.jsdelivr.net/npm/[email protected]/dist/maplibre-gl.min.js"; | ||
// TODO: point to npm when released | ||
import "https://cdn.jsdelivr.net/gh/jimmyrocks/maplibre-gl-vector-text-protocol@main/dist/maplibre-gl-vector-text-protocol.min.js"; | ||
import "https://cdn.jsdelivr.net/npm/@maplibre/[email protected]/dist/maplibre-gl-geocoder.min.js"; | ||
import * as maplibregl from "maplibre-gl"; | ||
import VectorTextProtocol from "maplibre-gl-vector-text-protocol"; | ||
import MaplibreGeocoder from "@maplibre/maplibre-gl-geocoder"; | ||
import "@maplibre/maplibre-gl-geocoder/dist/maplibre-gl-geocoder.css"; | ||
import "maplibre-gl/dist/maplibre-gl.css"; | ||
|
||
export function init(ctx, data) { | ||
ctx.importCSS( | ||
"https://cdn.jsdelivr.net/npm/[email protected]/dist/maplibre-gl.min.css" | ||
); | ||
|
||
ctx.importCSS( | ||
"https://cdn.jsdelivr.net/npm/@maplibre/[email protected]/lib/maplibre-gl-geocoder.min.css" | ||
); | ||
ctx.importCSS("main.css"); | ||
|
||
ctx.root.innerHTML = ` | ||
<div id='map' style='width: 896px; height: 400px;'></div> | ||
|
Oops, something went wrong.