Skip to content

Commit

Permalink
Fix frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
yezhengkai committed May 1, 2024
1 parent ff94d67 commit 048d864
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/maplibre-geocoder/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { GeocodingServices } from './modules/utils';
// https://www.stefanjudis.com/snippets/how-to-import-json-files-in-es-modules-node-js/
import mplStyle from './assets/mpl-style.json' assert { type: 'json' };

const { BASE_URL } = import.meta.env;
// const geocodingProvider = 'japan-gsi';
const geocodingProvider = 'nominatim';
const markerLngLat = [139.76712479635535, 35.68123617258725];
Expand All @@ -28,7 +29,7 @@ const map = new maplibregl.Map({
const marker = new maplibregl.Marker().setLngLat(markerLngLat).addTo(map)

marker.getElement().addEventListener('click', () => {
window.open('/test1.txt')
window.open(`${BASE_URL}test1.txt`)
});


Expand Down

0 comments on commit 048d864

Please sign in to comment.