Is it Possible to have both Content and User data in one View? Using Gmap/Location Modules

Events happening in the community are now at Drupal community events on www.drupal.org.
orenbus's picture

Hello, I'm using Gmap and Location, does anyone know know if it's possible to have a "View" that merges both "Content" & "User" information to produce a GMap?

Currently I have two Views with associated Gmaps, one that is shows locations of registered users on the web site and another View that shows locations associated with articles published to the web site, basically equivalent to store fronts. I would like to have a map showing both locations of User Locations and Content Locations all on one map.

Any advice would be most appreciated.

Comments

I think you just need to

sano's picture

I think you just need to modify the set of fields in the Filters section to allow selection of User records in addition to the other record type (storefronts). Then - in the Basic settings section - you should be able to adjust the Style options if you want to display different markers for the two different types of objects.

I've attached some screen

orenbus's picture

I've attached some screen shots to clarify my question, I'm not sure what you are suggesting would work since the "Show" option only allows for either "Content" or "User" information in the view screens and I wouldn't have the option to pick fields that are not available. Unless I'm missing something.

For example, when I create a view I am given a choice to either make a "Content" or a "User" view as seen here:
http://img26.imageshack.us/img26/2900/createview.jpg

When I pick Content to show in the View and then try to pick User fields to add to the view they are not available:
http://img15.imageshack.us/img15/8823/viewcontent.jpg

When I pick User to show in the View and then try to pick Content Title to add to the view those options are not available:
http://img845.imageshack.us/img845/6250/viewusers.jpg

I can make maps of either one as seen here:
http://img257.imageshack.us/img257/6048/mapsp.jpg

But what I want to do is merge them so that both Users and Content are shown on the same map.

Would it be possible to get a

tinem's picture

Would it be possible to get a link to your site where you have these 2 maps, please?

Unfortunately the site is in

orenbus's picture

Unfortunately the site is in a development environment however I've added screen shots above to clarify my questions and show exactly what I'm seeing.

Ok, I think I understand the

sano's picture

Ok, I think I understand the problem now. I have not had the need to implement a similar functionality, but googling for mixed types views resulted in some interesting drupal discussions:

http://www.google.com/search?q=drupal+mixed+view+type&ie=utf-8&oe=utf-8&...

Location and Mapping

Group organizers

Group categories

Wiki type

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: