Skip to content

Commit

Permalink
chore: NIP
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Sep 12, 2024
1 parent 2128fc1 commit c1de907
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/pages/about/desktop/footprint/helper.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type GeoJSON from 'geojson'
import type { LngLatLike, LayerSpecification } from 'mapbox-gl'

export interface GoogleMyMapPlacemark {
export interface GoogleMyMapPlaceMark {
index: number
id: string
name: string
Expand All @@ -11,10 +11,10 @@ export interface GoogleMyMapPlacemark {
}
export interface GoogleMyMapFolder {
name: string
placemarks: Array<GoogleMyMapPlacemark>
placemarks: Array<GoogleMyMapPlaceMark>
}

export type FeatureCollectionJSON = GeoJSON.FeatureCollection<GeoJSON.Geometry, GoogleMyMapPlacemark>
export type FeatureCollectionJSON = GeoJSON.FeatureCollection<GeoJSON.Geometry, GoogleMyMapPlaceMark>

export const gmmFoldersToGeoJSON = (folders: Array<GoogleMyMapFolder>): FeatureCollectionJSON => ({
type: 'FeatureCollection',
Expand Down
4 changes: 2 additions & 2 deletions src/pages/about/desktop/footprint/modal.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts" setup>
import type { Map, Popup } from 'mapbox-gl'
import { shallowRef } from 'vue'
import { GoogleMyMapFolder, FeatureCollectionJSON, GoogleMyMapPlacemark, newMapboxPopup } from './helper'
import { GoogleMyMapFolder, FeatureCollectionJSON, GoogleMyMapPlaceMark, newMapboxPopup } from './helper'
import Mapbox from './mapbox.vue'
defineProps<{
Expand All @@ -19,7 +19,7 @@
}
let prevPopup: Popup | null = null
const handlePlacemarkClick = (placemark: GoogleMyMapPlacemark) => {
const handlePlacemarkClick = (placemark: GoogleMyMapPlaceMark) => {
if (map.value) {
prevPopup?.remove()
prevPopup = newMapboxPopup(lib.value, placemark.coordinates, placemark.description).addTo(map.value)
Expand Down

0 comments on commit c1de907

Please sign in to comment.