Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a module which adds a geofield to Countries and populates it with the shape of the country in Well Known Text. This allows you to create Openlayers maps based on views which can allow you to hover over a country and display information in a textbox directly within a map.
The module is available here as a sandbox: https://drupal.org/sandbox/guillaumev/1702712
Please let me know if you think this module could be integrated directly in the main countries project (in the subdirectory modules) or if you think I should create its own project named countries_borders...
Thank you,
Comments
Comment #1
Alan D. CreditAttribution: Alan D. commentedPersonally, I think that a separate module would probably be best. But let us know if you have any issues integrating
Comment #2
guillaumev CreditAttribution: guillaumev commentedThank you, I promoted the project as a full project, see http://drupal.org/project/countries_borders
Comment #4
kumkum29 CreditAttribution: kumkum29 commentedHello Guillaumev,
can you explain how to set this module? Should I create a "country" content type with a country field? How do I adjust my view to display countries?
Thank you for your help.
Comment #5
guillaumev CreditAttribution: guillaumev commentedHello kumkum29,
Please see here: http://drupal.org/node/1896526
Comment #6
kumkum29 CreditAttribution: kumkum29 commentedHello,
thank you for your answer ;)
I had not seen the "relationship" in the view settings.
Is it possible to change the css of the country: color, background-image ....
Thanks
Comment #7
kumkum29 CreditAttribution: kumkum29 commentedFor country style, you must create a new style in the "Styles" tab in openlayers module: color, stroke, fill ...
Comment #8
crabpatty CreditAttribution: crabpatty commented@kumkum29 how are you setting up the styles to fill the country? I'm lost on that part.