Skip to content

Commit e31f2e7

Browse files
committed
fixed mapbox token checkins page
1 parent d0fbf50 commit e31f2e7

File tree

2 files changed

+2
-66
lines changed

2 files changed

+2
-66
lines changed

pages/dev/test-site/checkin/+Page.client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import 'mapbox-gl/dist/mapbox-gl.css';
66
import { BlankImage, Image, Footer } from "../index";
77
import "./main.styl";
88
import "../main.styl";
9+
import { SETTINGS } from "@macrostrat-web/settings";
910

1011
function imageExists(image_url){
1112
var http = new XMLHttpRequest();
@@ -184,7 +185,7 @@ export function Page() {
184185
return h('div', [
185186
h('div', { className: 'main'}, [
186187
h('h1', { className: "checkin-header" }, checkin.description),
187-
h(BlankImage, { className: "location-img", src: "https://api.mapbox.com/styles/v1/jczaplewski/cje04mr9l3mo82spihpralr4i/static/geojson(%7B%22type%22%3A%22Point%22%2C%22coordinates%22%3A%5B" + checkin.lng + "%2C" + checkin.lat + "%5D%7D)/" + checkin.lng + "," + checkin.lat + ",5,0/1200x400?access_token=" + import.meta.env.VITE_MAPBOX_API_TOKEN }),
188+
h(BlankImage, { className: "location-img", src: "https://api.mapbox.com/styles/v1/jczaplewski/cje04mr9l3mo82spihpralr4i/static/geojson(%7B%22type%22%3A%22Point%22%2C%22coordinates%22%3A%5B" + checkin.lng + "%2C" + checkin.lat + "%5D%7D)/" + checkin.lng + "," + checkin.lat + ",5,0/1200x400?access_token=" + SETTINGS.mapboxAccessToken }),
188189
h('div', { className: 'stop-header' }, [
189190
h('h3', {className: 'profile-pic'}, profile_pic),
190191
h('div', {className: 'stop-main-info'}, [

pages/dev/test-site/rockd-checkins/+Page.client.ts

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)