mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
LocationAutocomplete using Mapbox
This commit is contained in:
parent
cd2b89906b
commit
da997c8bd4
2 changed files with 5 additions and 2 deletions
|
|
@ -146,6 +146,7 @@
|
|||
<script src="https://maps.googleapis.com/maps/api/js?key=%REACT_APP_GOOGLE_MAPS_API_KEY%&libraries=places"></script>
|
||||
<link href="https://api.mapbox.com/mapbox-gl-js/v0.47.0/mapbox-gl.css" rel="stylesheet" />
|
||||
<script src="https://api.mapbox.com/mapbox-gl-js/v0.47.0/mapbox-gl.js"></script>
|
||||
<script src="https://unpkg.com/@mapbox/mapbox-sdk/umd/mapbox-sdk.min.js"></script>
|
||||
<script>
|
||||
window.mapboxgl.accessToken = '%REACT_APP_MAPBOX_ACCESS_TOKEN%';
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -7,8 +7,10 @@ import { IconSpinner } from '../../components';
|
|||
import { propTypes } from '../../util/types';
|
||||
import IconHourGlass from './IconHourGlass';
|
||||
import IconCurrentLocation from './IconCurrentLocation';
|
||||
import Geocoder, { GeocoderAttribution, CURRENT_LOCATION_ID } from './GeocoderGoogleMaps';
|
||||
// import Geocoder, { GeocoderAttribution, CURRENT_LOCATION_ID } from './GeocoderMapbox';
|
||||
import Geocoder, {
|
||||
GeocoderAttribution,
|
||||
CURRENT_LOCATION_ID,
|
||||
} from './GeocoderMapbox';
|
||||
import config from '../../config';
|
||||
|
||||
import css from './LocationAutocompleteInput.css';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue