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

KiLLAH89 created an issue.

RdeBoer’s picture

KiLLAH89’s picture

Ok 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

RdeBoer’s picture

Not 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".

KiLLAH89’s picture

Sorry 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.

RdeBoer’s picture

If 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.