Currently, the module only allows the entity label to be displayed in Map's Markers InfoWindow (Markers' bubbles), see geofield_baidu_map.module line 86:
entity_label($entity_type, $entity)
so basically, if the entity is a node, then the node title would be displayed.

If there are several values/Markers displayed on the Map, then each Marker's InfoWindow (bubble), would show the same information: the node title.

Perhaps it would be very practical to provide a way for themers and developers to override the contents or HTML Markup displayed in the InfoWindow to display more information related with the entity. So maybe we could add a Theme function to which we would pass the entity displayed and several other parameters used by the display formatter.

Please let me know if you would have any questions, objections, comments, suggestions, recommendations or concerns on any aspects of feature request, I would be glad to provide more information or explain in more details.

Any questions, feedback, testing, changes, ideas or recommendations would be highly appreciated.
Thanks to all in advance.

Comments

xiukun.zhou’s picture

Status: Active » Fixed

Quick follow-up on this feature request:

Added new theme function: theme_geofield_baidu_map_infowindow to allow Themes to override the contents displayed in Markers InfoWindow.
For better customization, many parameters are passed to the theme function: the entity, the field instance, the entity type, the language, items to be displayed and the delta of the value, corresponding to a Marker or Geometry to be displayed.

This should allow displaying the coordinates of each Marker, or any other specific information for each of the different values of the field.

I went ahead and committed the changes against the 7.x-1.x branch at fe0c003.

I allowed myself to mark this issue as fixed for now, but feel free to re-open it, or post a new ticket, at any time if you have any further objections with this issue or related commit fe0c003 (we would surely be happy to hear your feedback).

Please let me know if you would have any further comments, feedback, questions, issues, objections, suggestions or concerns on the commit or this feature request in general, I would be glad to provide more information or explain in more details.

Thanks in advance to everyone for your testing, reviews, feedback and comments on this issue.
Cheers!

Status: Fixed » Closed (fixed)

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