I've got Views set up with Locations and Gmap in order to display locations in a user's area. However the results are displaying one map per location, listed on the same page. How do I make all the locations appear as markers in just one map? I've searched through all the settings and can't seem to figure out which that is.

I've fiddled with the marker managers section, but it just makes things worse. If I choose any of the other marker managers other than "No manager", the result is a listing of maps with no markers, defaulting to the default zoom setting of gmap. If I put it back on No Manager, then the maps show the marker again, zoomed in to the proper level. I can find no documentation on these clustering managers, or if they're even the right setting I should be fiddling with. What I want is rather simple, right? What am I missing?

Comments

msmartin’s picture

packdragon -

I had success setting up a GMap as an ‘attachment’ in a view.

When editing a view the popup menu just above the “Add display” button includes things like “Page,” “Block,” and... “Attachment.”

When you've created the attachment click the “Style” value under “Basic Settings” and you should have “GMap” as one of the options (along with “Grid,” “HTML List,” etc.).

An attachment has an “Attachment settings” block with “Attach to:” in it. Click that to specify which other displays in the view you want to attach your attachment to :)

I have a view with a page display that displays nodes with location information (I used the Location module’s ‘Node Location’ feature rather than its ‘Location CCK’ fields) and attached my GMap attachment to that. And it worked. I got lucky.

rooby’s picture

In the style options for your gmap view what do you have for the grouping field?

If you select you should just get one map with all the locations.

plepot’s picture

I am very interested in what you suggest... but I can't get it to work :(

Here is what I am trying to achieve: I am trying to display on a single gmap the location of the node and a cck location of the node. I can go up to having two maps (one for each location type (the node itself and the cck location) but I can't have both markers on the same map. I did try to use the grouping as you suggest but I do not know which field to group on.

Any idea?

johnv’s picture

Status: Active » Postponed (maintainer needs more info)

This is already a very old issue. Is it still relevant?

jamjam89’s picture

yes it is. I seem to only be able to display one marker. what is messed up about this is, I had this working fine before! multiple markers, same map. Now it only displays ONE marker. I am very frustrated because I haven't touched the site for a while too ! What is going on?

eiland’s picture

I have the same issue, and strangely, all the marker items are in the source code's jQuery.extend Drupal.settings gmap_markermanager-data

At the same time my site also doesn't show the "Highlight marker for node argument", somehow I think its related

Before I heavily relied on #1 of #679804: Patch for 4 new features in GMap, but I think all that should now be integrated?

See http://tinyurl.com/ojoh99e for a node with currently only one marker (instead of 100, you need to zoom out)

eiland’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Active
eiland’s picture

eiland’s picture

Version: 6.x-1.1-rc1 » 6.x-2.0-beta5