Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey guys,
is there a way to show currently logged in users on a map with current position. Also the the user who search for, show also on the map in center.
Hope someone understands me.
Comments
Comment #2
RdeBoerYou mean this: http://flink.com.au/tips-tricks/map-of-mobile-users-updated-automatically
Comment #3
KiLLAH89 CreditAttribution: KiLLAH89 commentedOk got it with Geolocation. Now the problem is that I (current position) and the current user (current position) can not narrow down the distance to the logged on user.
How can i get this work? Any help?
Thanks
Comment #4
RdeBoerNot sure I fully understand what you are after...
Geofield, as opposed to Geolocation Field, comes with built-in Views exposed proximity filters to narrow the View results (and thus what goes on the map) to a selectable number of kilometers.
It works well with the "Set my location block".
Comment #5
KiLLAH89 CreditAttribution: KiLLAH89 commentedSorry for my bad english. I look for a method to show the currently logged in users on the map with current html5/gps position. That`s work correctly, but now i can't filter the results by distance from my current position. That's my problem. I don't want a static address. The position comes from "geolocation's html5 widget". But how can i implement them?
Thanks hope it's better explained now.
Comment #6
RdeBoerIf you insist on using the Geolocation Field module, you probably want to use https://www.drupal.org/project/geolocation_proximity
My favorite geo-coordinate storage module is Geofield.
Here is a related example: http://regionbound.com/coffee-prices-across-melbourne
And here is how it was created: http://regionbound.com/Drupal-IPGVM-map-configuration
It show distances to the current user in the table on the right. It doesn't have the distance FILTER, but that can be easily added. The distance/proximity filter is available as a Views exposed filter, when you enable Geofield.