Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/components/HogMap/PlacesMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useUserLocation } from '../../hooks/useUserLocation'
import SearchBar, { createSearchMarker } from './SearchBar'
import { usePlacesMapData, Coordinates } from './PlacesLayer'
import { renderToString } from 'react-dom/server'
import { IconBuilding, IconBed, IconBurger, IconCoffee, IconLaptop, IconTelescope } from '@posthog/icons'
import { IconBuilding, IconBed, IconBurger, IconCoffee, IconLaptop, IconTelescope, IconFlask } from '@posthog/icons'
import {
computeOffsets,
getMapbox,
Expand All @@ -31,6 +31,8 @@ export const getPlaceIcon = (type: string, size = 'size-4'): { icon: JSX.Element
return { icon: <IconBed className={size} />, colorClass: 'bg-purple text-white' }
case PlaceType.CO_WORKING:
return { icon: <IconLaptop className={size} />, colorClass: 'bg-green text-white' }
case PlaceType.BAR:
return { icon: <IconFlask className={size} />, colorClass: 'bg-teal text-white' }
case PlaceType.OFFSITE:
return { icon: <IconTelescope className={size} />, colorClass: 'bg-orange text-white' }
default:
Expand Down
2 changes: 1 addition & 1 deletion src/components/HogMap/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export function createSearchMarker({
selectLabel.className = 'block text-xs text-secondary mb-1'
selectLabel.textContent = 'Place type'
const select = document.createElement('select')
;['Coffee', 'Restaurant', 'Airbnb', 'Hotel', 'Co-working'].forEach((opt) => {
;['Coffee', 'Restaurant', 'Airbnb', 'Hotel', 'Co-working', 'Bar'].forEach((opt) => {
const o = document.createElement('option')
o.value = opt
o.textContent = opt
Expand Down
1 change: 1 addition & 0 deletions src/components/HogMap/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export enum PlaceType {
HOTEL = 'Hotel',
AIRBNB = 'Airbnb',
CO_WORKING = 'Co-working',
BAR = 'Bar',
//OFFSITE = 'Offsite',
}
export interface PlaceItem {
Expand Down