I am requesting an additional feature to allow Mapstraction labels to have additional fields displayed when you click on the map marker. Right now it only shows a single Title label, which I can link back to the node. But in several cases I would rather just display a short line or two of text from the node body. Is that possible to add?

Comments

Old Man’s picture

I am requesting an additional feature to allow Mapstraction labels to have additional fields displayed when you click on the map marker. Right now it only shows a single Title label, which I can link back to the node. But in several cases I would rather just display a short line or two of text from the node body. Is that possible to add?

RockSoup’s picture

I am also interested in adding more fields to marker. Looking forward to hearing more. Thanks for this module, it is fantastic.

*edit* I am hacking things a bit to achieve something a little closer to what I am going for. I have switched my "title" in the mapstraction" config for the display type from node:title to a field I created to collect a bunch of other fields. I add the other fields first always selecting "exclude from display" and on my last field I choose "rewrite the output of this field" and use the token to put together what I want to appear on the marker. Works great. It is amazing the things you can do with that "rewrite... " option, views2 rulz.

davemybes’s picture

Brilliant work around for displaying other fields. Its a little more work than just adding each field to the list, but at least you can customize everything nicely, and you don't have to use a dev version of the module to do it (like you have to for Gmap at the moment).

This is a great module and so simple to use - bye, bye Gmap :)

levelos’s picture

Status: Active » Fixed

RockSoup's field rewrite approach, or to theme a particular field with template file and/or preprocess function is the best way to go for now. It provides the most flexibility. I'll update the docs with some tips along these lines.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.