One popular option to implement a searchable map in Webflow is by integrating Google Maps. Here's a step-by-step guide on how you can achieve this:
1. Sign up for a Google Maps API key: Visit the Google Cloud Platform Console (console.cloud.google.com) and create a new project. Enable the "Maps JavaScript API" and obtain an API key.
2. Add the Google Maps API to your Webflow project: In the Webflow Designer, go to Project Settings > Custom Code. Paste the following script tag in the Head Code section, replacing "YOUR_API_KEY" with the API key you obtained from Google:
```html
```
3. Design your map container: Add a new div block to your Webflow page and give it a class name like "map-container". Adjust the dimension and position of this div as desired.
4. Add custom code for the map: Go to the Page Settings > Custom Code for the page where you want to display the map. Paste the following script code in the Head section:
```javascript
```
5. Add the map container and initialize the map: Insert an HTML embed element in your Webflow page where you want the map to appear. Set the embed code to:
```html
\`\`\`6. Finish setting up the map: At the bottom of the Page Settings > Custom Code section, add the following script code:
```javascript
```
7. Customize the map and markers: You can modify various options like the map's initial center and zoom level, as well as the appearance of markers. Refer to the Google Maps JavaScript API documentation (developers.google.com/maps/documentation/javascript/) for detailed instructions on customization.
Once the steps above are completed, you should have a searchable map displaying your business partners' locations near the user. Users can interact with the map to pan and zoom, and clicking on a marker will display the relevant partner information. Keep in mind that this guide assumes basic knowledge of HTML and JavaScript for custom code implementation in Webflow.