Display different markers for different users on map

Hi everyone, I am working on event based app. I am using the map with multiple markers to show events.
but I want to show the markers in the same City as the user only.
Example: you are in LA you want to see events there only, and another user in New York wants to see the markers of that area only.

I know a work around which is to have multiple layers of maps and each will be visible to the user based on the city he chooses. but will this work around affect performance heavily? and will it increase the app size by much?
is there a simpler way or that is my only option for now?

Thanks

A couple of ways to do it.

Set the deafult marker to logged in user city (this only works if the user has a city saved to their profile).

OR

Go into the map settings and make sure the ‘Show current location’ toggle is on…

image

If you want to show ONLY markers from the same city as the user then set your map up like this…

Hope this helps

2 Likes

thanks it worked! I tried it and yea works exactly like I wanted

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.