The D3Map Region Views module extends the feature of D3Map views module.
This module helps to highlight specific regions and makes each region clickable to filter the content to specific region.
We can also highlight regions by extending feature of highlighting states from D3Map views module.
Existing display "D3 Map" is being reused to change states to regions based.
More Technical Notes:
- The module uses existing view display "D3 Map" that can be used to render the content of a view
- The map display uses json file of states present in d3map views module.
- Custom territories are added to map for their representation as well as smaller state areas on the east coast (D3 manipulation)
- This is intended to be added to a page which contains the desired view of the content and has a region field which uses "region" as the URL variable representing the region to filter the content accordingly.
- Clicking a region generates a "page click" that changes the "region" value in the URL to the desired region representation value of the selected state
Dependencies
D3 Map Views module is required since this module is the extension of it.
D3 Library is also required which includes one of the versions of D3.js
Please refer readme.txt for installation and configuration.
Please find the below git clone command to check the module.
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ganesangopal/2606188.git d3map_region_views
Sandbox page: https://www.drupal.org/sandbox/ganesangopal/2606188
Pareview
http://pareview.sh/pareview/httpgitdrupalorgsandboxganesangopal2606188git
Manual Reviews of other projects
https://www.drupal.org/node/2756909#comment-11634881
https://www.drupal.org/node/2795715#comment-11635835
https://www.drupal.org/node/2767049#comment-11655259
https://www.drupal.org/node/2796315#comment-11681203
https://www.drupal.org/node/2795951#comment-11729077
https://www.drupal.org/node/2792763#comment-11729785
https://www.drupal.org/node/2796389#comment-11729943
Comment | File | Size | Author |
---|---|---|---|
d3map_region.png | 93.33 KB | ganesan g |
Comments
Comment #2
ganesan g CreditAttribution: ganesan g commentedComment #3
ganesan g CreditAttribution: ganesan g commentedComment #4
PA robot CreditAttribution: PA robot commentedGit clone command for the sandbox is missing in the issue summary, please add it.
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 #5
ganesan g CreditAttribution: ganesan g commentedComment #6
ganesan g CreditAttribution: ganesan g commentedComment #7
ganesan g CreditAttribution: ganesan g commentedComment #8
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxganesangopal2606188git
Fixed the git clone URL in the issue summary for non-maintainer users.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #9
ganesan g CreditAttribution: ganesan g commentedComment #10
ganesan g CreditAttribution: ganesan g commentedI have resolved the errors reported by automated review tools except the error "d3 is not defined".
That error cannot be resolved since d3 variable is defined in external library file "d3.js". That library is compulsory for D3Map Views module which is the dependency for this module.
So d3 variable will be defined when D3Map region views module's js file uses it. Please check it.
Comment #11
ganesan g CreditAttribution: ganesan g commentedAdded D7
Comment #12
ganesan g CreditAttribution: ganesan g commentedComment #13
ganesan g CreditAttribution: ganesan g commentedComment #14
jack_ry CreditAttribution: jack_ry commentedHi Ganesan Gopal,
Could you specify the version of d3 js that is applicable for your project. When I tried with the latest version I get a console error and could not find the map.
Comment #15
ganesan g CreditAttribution: ganesan g commentedHi jack_ry,
I updated the version info in readme.txt. Version should be lesser than 4.0.0. Please review.
Comment #16
ganesan g CreditAttribution: ganesan g commentedComment #17
klausiComment #18
klausimanual review:
Otherwise looks good to me. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #19
ganesan g CreditAttribution: ganesan g commented@klausi, Thanks for the review. I added all of the recommendations which you suggested except 5th point.
In this map, we are showing only postal codes. State/territory labels are used just for readability to show which postal code belongs to which state. In dependency module "D3Map Views" also using the same. So translation is not needed for state and territory labels.
Will review 3 more project and add review bonus tag.
Comment #20
ganesan g CreditAttribution: ganesan g commentedComment #21
klausiNo objection for a week, so ...
Thanks for your contribution, Ganesan!
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.
Comment #22
ganesan g CreditAttribution: ganesan g commentedThanks for all the reviewers who reviewed my project. I had learned a lot through this process.
Thank you klausi.