Description
This module integrates as a geofield formatter. With some simple settings you will be able to add a Google Map with a custom style and marker to your node view. The build of the module was decided on the following research. This module has been made with the view to create a Google Styled Map with as few steps possible. So the pin and style of the Google Map can be easily changed. This module also makes use of the System Stream Wrapper module. With it you can easily define your marker image location ex. theme://mytheme/images/pin.png.
Project location
https://drupal.org/sandbox/iampuma/2208445
Repository
http://drupalcode.org/sandbox/iampuma/2208445.git
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/iampuma/2208445.git styled_google_map

Reviews of other projects
* https://drupal.org/comment/8547065#comment-8547065
* https://www.drupal.org/node/2346321#comment-9199257
* https://www.drupal.org/node/2390489#comment-9568457
| Comment | File | Size | Author |
|---|---|---|---|
| styled-google-map.png | 614.59 KB | iampuma |
Comments
Comment #1
iampumaComment #2
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxiampuma2208445git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
iampumaComment #4
iampumaComment #5
iampumaComment #6
sawtell commentedHi there,
styled_google_map.info
I can see that the system_stream_wrapper module is a dependency but I can only see two instances where it is being utilised.
Additional modules can add overhead, does system_stream_wrapper provide any gains over drupal_get_path in this scenario? (Could be that it does, just wanted to raise the point).
styled_google_map.module
The PHPDoc comment is missing the @return tag
styled-google-map.js
Comma on last array element needs to be removed. line 10 and line 32
Unnecessary comment on line 13
README.txt
Inconsistency for "Geofield" capitalisation line 4
Spelling error for "desired" line 32
Otherwise it all looks good.
I've installed the module successfully and implemented the display with various configurations that all work as expected.
Edit:
The git command in the original post should be:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/iampuma/2208445.git styled_google_mapComment #7
iampumaComment #8
iampumaComment #9
iampumaAs this module is created for having an easy setup. I concluded to use the system_stream_wrapper module. It gives many options without unnecessary complexity. As for the PHPDoc could you provide more info where the @return tag is needed. I could not find it in the Drupal Doxygen. All other remarks I have adjusted accordingly. Thanks for reviewing.
Comment #10
bmeme commentedHi there
I tried your module and it seems very ok. I would modify this only this:
'#options' => array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19),into this:
'#options' => range(1,19),everywhere you defined this array in your code. But it is only a matter of major code cleanup, the rest seems ok!!
Comment #11
iampumaCorrected the ranged arrays.
Comment #12
spficklin commentedModule looks good. It installed without issues and I was able to add a map to a content page. Paraview reports a few minor errors (http://pareview.sh/pareview/httpgitdrupalorgsandboxiampuma2208445git). But otherwise, the module, from my perspective, follows the checks describe here as well: https://www.drupal.org/node/1587704.
My only suggestion would be to add some additional documentation. For example there is no in-line documentation for the functions:
Those functions all have some control logic which can help if described a bit. Also, you may want to describe how this module is significantly different from the Google Map Field module. But despite some of these minor issues looks good and works well!
Comment #13
iampumaAdded inline comments to functions with control logic as suggested. Fixed the Pareview issues as well.
Comment #14
iampumaI recently added some changes to the module, which should not affect previous issues:
- Added the ability to use field groups inside the marker popup if available.
- Added multiple maps support on a single page.
- Added ajax called maps support for views with pagers and etc.
Comment #15
baddysonjathe new functionality works. I'm using it in two projects and haven't had any problems.
Comment #16
1xinternet commentedWorks like a charm, thank you.
Comment #17
iampumaAdded review https://www.drupal.org/node/2346321#comment-9199257
Comment #18
klausiSorry for the delay. Make sure to finish your review bonus next time and this will get processed faster.
Review of the 7.x-1.x branch (commit 3d2c95a):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
5'"><script>alert('width');</script>as width in the formatter settings I will get a nasty javascript popup when the field is displayed. You need to sanitize all user provided text before printing to HTML. Make sure to read https://www.drupal.org/node/28984 again. And please don't remove the security tag, we keep that for statistics and to show examples of security problems.Comment #19
iampuma@Klausi thank you for reviewing! And yes, I noted down finishing the review bonus for next time.
Following points were looked at:
1. The author tag in the module file has been removed.
2. The .rar file should not have been there. This is removed from the repository.
3. #Markup attribute is removed.
4. Incorrect ":" placeholders are replaced by "%".
5. Additional sanitizing functions are used before display.
As last I will update the project page, with more information.
Comment #20
iampumaComment #21
iampumaComment #22
iampumaComment #23
iampumaThe project page description is updated!
Comment #24
iampumaComment #25
klausiFixing tag.
Comment #26
klausiReview of the 7.x-1.x branch (commit 07e66e5):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
But otherwise looks RTBC to me. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Assigning to dman as he might have time to take a final look at this.
Comment #27
iampumaThank you for another review @klausi. Your suggestions should be fixed.
Comment #28
kscheirerSorry, I got to this first on account of the ticket being so old. Thanks for addressing the duplication issue on the project page. Did not find any security, licensing, Drupal API, or individual account issues.
Thanks for your contribution, iampuma!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.