Skip Navigation

[Resolved] Displaying user locations on a map

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by Luo Yang 5 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1215466

Hi there,

We need to create a custom field where users can enter their town for their user profile. What we then need is a map displaying a pin for every user, so there is an overview where every user is on the site.

Is this possible please?

#1216713

Hello,

Yes, it possible within Toolset, it needs three plugins: Types + Views + Maps, you can download them here:
https://toolset.com/account/downloads/

Here are detail steps:
1) Create a custom user address field
https://toolset.com/documentation/user-guides/user-fields/

2) Edit each user's profile, setup the value of above address field

3) Create a user view, list users, and display the address field as map markers:
https://toolset.com/documentation/user-guides/display-on-google-maps/

#1217693

Hi Luo,

Many thanks for your reply.

Would users be able to enter their location in that address field (by town only, people should not have to enter their specific address) from the front end? Or would we have to do that for them?

Many thanks,
Andrew.

#1217909

Dear Andrew,

Yes, it is possible within Toolset,

It needs four plugins: Types, Views, Forms and Maps , you can download them here:
https://toolset.com/account/downloads/

Here are details steps:
1) Create a custom user address field, for example "my-address"
https://toolset.com/documentation/user-guides/user-fields/

2) Create a Toolset form for editing user with above address field
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/

put it into a page, for users to edit their profile, and input their address value

3) Create a user view, list users, and display a map, in view's loop, display the address value as map makers.
https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/#displaying-a-map-with-a-list-of-markers-coming-from-a-view

For your reference.

#1217946

Thank you for your reply.

Can you confirm this please:

Will users be able to simply enter a town, rather than having to enter their exact address (which would not be suitable). We just need to display the town of every user on the map.

Very best wishes,
Andrew.

#1217951

Yes, that is possible, the user can input town name instead of exact address.