Demo: http://pinclone.net/demo/user/johnpaul/

Notice the MAP icon that links to the users address pin (190 california street, san francisco, ca). I am looking for a way to duplicate this in Drupal.
Should I just create the address field for profiles as a (text) field and then manually edit the profile template to call that and open in a map? What's the best/easiest way to pull this off?

Thanks in advance,

Kev

Comments

nevets’s picture

I would use the Address Field, Geofield and Geocoder modules.

There are several module for displaying on a map, if you use open layers, geofield includes a formatter for it.

Install the modules, pay attention to the install instruction of Geofield.

Add an address field to the user object (configuration >> account settings >> manage fields (tab)).
Then add a geofield using the "Geocode from another field" widget.

WorldFallz’s picture

That's what i use currently (with openlayers for the map) and it works great. Though for a simpler solution you can also use http://drupal.org/project/addressfield_staticmap

Also, since this isn't a programming question, moved to the correct forum. Please see the stickies at the top of most forums to figure out where to post. Thanks.