Hello to everyone!
Now making an app based on Chat template.
How can I let users post their adress in the profile? And then let other users see adress using Map component?
Idea is to find someone to chat nearby.
Hello to everyone!
Hi @Nikita, hope you’re doing well.
Please follow the steps:
- Go to the database.
In the Users collection, add a new property as a text property.
You can name it Address.
- Now, go to the component marketplace and install the Map component and click Done (if you already have it installed, skip this step).
- Drag the Map component to the screen where a user can view another user’s profile.
- Setup your Google API Key:
Then, copy your Google API Key and paste it into the left panel in Adalo for your Map Component
Go to https://console.cloud.google.com/apis/library/maps-backend.googleapis.com and click the Enable button
Go to https://console.cloud.google.com/apis/library/geocoding-backend.googleapis.com and click the Enable button
Go to https://console.cloud.google.com/apis/library/maps-ios-backend.googleapis.com and click the Enable button
Go to https://console.cloud.google.com/apis/library/maps-android-backend.googleapis.com and click the Enable button
Go to https://console.cloud.google.com/billing/linkedaccount and click Link Billing account. Your Google account includes $300 credit for a free trial of its API, and will not start billing your card without your consent, but Google does require that you have a credit card on file in order to access the free trial of its API.
Select the number of Markers and, for multiple markers, configure the settings:
Select if your map will display a single marker or multiple markers. If you select Multiple Markers…
Select which Collection to list the markers for.
Optionally choose to filter which records in that collection to display markers for.
You can also set a max number of items as well as sorting. For example, you can choose to only display markers for the top 10 records, sorted a-z.
Set the marker address to be the address of the current user.
Customize your Map Style:
Choose the Map Style option of either Roadmap, Hybrid, Satellite, or Terrain
Want even more control over the style of your map? No problem. You can add custom JSON to further customize your map. Not sure about writing your own JSON code? Not to worry! You can use the Google Maps Styling Wizard to make your own map style. The Wizard will automatically generate the JSON for you that you can copy and paste into Adalo.
- Go to https://mapstyle.withgoogle.com/
- Click Create a Style
- Make your style customizations
- Click Finish
- Click Copy JSON
- Paste your JSON in Adalo
- Preview your app to see the custom styles! Note: You won’t see the custom styles in the editor, but you will see them in the app’s preview, share link, and of course the published app.
Hope it helps!
Thats it! Thanks a lot!
Glad I helped!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.