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

Alan D.’s picture

Personally, I think that a separate module would probably be best. But let us know if you have any issues integrating

guillaumev’s picture

Status: Active » Fixed

Thank you, I promoted the project as a full project, see http://drupal.org/project/countries_borders

Status: Fixed » Closed (fixed)

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

kumkum29’s picture

Hello 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.

guillaumev’s picture

Hello kumkum29,

Please see here: http://drupal.org/node/1896526

kumkum29’s picture

Hello,

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

kumkum29’s picture

For country style, you must create a new style in the "Styles" tab in openlayers module: color, stroke, fill ...

crabpatty’s picture

Issue summary: View changes

@kumkum29 how are you setting up the styles to fill the country? I'm lost on that part.