Based on the great integration work that has been done in the Geofield Map module to integrate with Views: geofield_map_plugin_style_map.inc, it would seem very straight forward to adapt this file to match with Baidu Map's formatter settings properties and methods to instantiate a map.
In an exactly identical way, we would be adding a Views Display Plugin, which would allow displaying through a Baidu Map the Geofield values of entities from a View.
The work here is actually very limited and it would mostly come down to matching the code from Google Map's Geofield Views implementation, with Baidu Map API and module.
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
Comment #1
xiukun.zhou commentedQuick follow-up on this feature request:
Major improvement: Baidu Map now fully supports display through Views!
It is amazing how the code could cross over so nicely!!
Added the Views display plugin: geofield_baidu_map_plugin_style_map.inc, which is actually almost the same as the one from Geofield Map (see geofield_map_plugin_style_map.inc).
I went ahead and committed the changes against the 7.x-1.x branch at 8e95a33.
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 8e95a33 (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.
Many thanks to @DYdave for his great work and idea to adapt the file geofield_map_plugin_style_map.inc and leverage the great work from other modules contributed as Open Source.
Thanks in advance to everyone for your testing, reviews, feedback and comments on this issue.
Cheers!