-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add geocode #69
Add geocode #69
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌴 🐈
lib/assets/maplibre/main.js
Outdated
@@ -1,12 +1,17 @@ | |||
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://unpkg.com/@maplibre/[email protected]/dist/maplibre-gl-geocoder.min.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we would depend on fewer CDNs, to have fewer points of failure. I assume this is not on jsdelivr though? :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can esbuild, as we've done in kino!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've switched to jsdelivr and will soon convert it to esbuild
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet!
10cfcc6
to
a36e362
Compare
Screen.Recording.2024-01-11.at.19.11.48-converted.mov