Skip to content

Commit

Permalink
Switch to OpenStreetMapProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
DinerIsmail committed Nov 7, 2024
1 parent a7c1b1f commit b02f7ed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/admin/listing-form/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ import { useFormikContext } from 'formik'
import { MapContainer, TileLayer, Marker, useMap } from 'react-leaflet'
import 'leaflet/dist/leaflet.css'
import 'leaflet-geosearch/dist/geosearch.css'
import { GoogleProvider, GeoSearchControl } from 'leaflet-geosearch'
import { OpenStreetMapProvider, GeoSearchControl } from 'leaflet-geosearch'

const provider = new GoogleProvider({
apiKey: process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY,
})
const provider = new OpenStreetMapProvider()

const geoSearchControl = GeoSearchControl({
provider,
Expand Down

0 comments on commit b02f7ed

Please sign in to comment.