I've installed Gmap and location modules. I have a view with gmap display and i'd like to be able to display more than one field in the marker bubble, but the module doesn't allow more than one field in the bubble. How do i achieve that ? Is there a template or a theme function that'll allow me to do that?


2 Answers 2


There's a actually a way to do this in Views UI.

  1. Add all your fields in Views as per usual
  2. On the bottom most field (ideally the one that's the bubble), edit it and click on "Rewrite results". (Note you can drag / reorder fields to get the right one at the bottom.)
  3. Check the box, "Rewrite the output of this field"
  4. Below that once expanded, you will see "Replacement patterns"
  5. Now add in all the tokens into the rewrite text box. e.g. [title] == Content: Title, [some_other-field] == Content: Some other field, etc...
  6. Click apply.
  7. Now go in and edit the other fields that you added in to the bottom field and check the box "Exclude from display"
  8. Now go to "Format" probably something like "Gmap" and click on "settings". You will see a "grouping setting
  9. select to group on that bottom most field that you added in all the tokens to.
  10. Save this and now all those fields should be in the bubble.

Obviously without seeing your view, I was guessing at some of this so you will have to try to make sense of it as it in terms of your view.


Sorry, but I didn't got what are you trying to achieve, if you are asking for this kind of map http://www.hospitalsreview.com/smile-care?qt-tabs=3#qt-tabs then its possible since it is created in Drupal 7 with Gmap and location module, only thing you have to do is to make some changes in fields of your views and and there is a css bug of GMap module, that you have to clear it up manually. If you need some more help then you're welcome :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.