This is a sample map of Brazil showing the ten biggest cities:
The tooltip has a custom styling. It has round corners and a different padding. The corresponding CSS can be found in the configuration at the end of this page (under “Map template”).
Our plugin also allows to split Brazil into the following regions:
- Distrito Federal
- Acre
- Alagoas
- Amapá
- Amazonas
- Bahia
- Ceará
- Espírito Santo
- Goiás
- Maranhão
- Mato Grosso
- Mato Grosso do Sul
- Minas Gerais
- Para / Pará
- Paraiba / Paraíba
- Paraná
- Pernambuco
- Piauí
- Rio de Janeiro
- Rio Grande do Norte
- Rio Grande do Sul
- Rondônia
- Roraima
- Santa Catarina
- Sao Paulo / São Paulo
- Sergipe
- Tocantins
The map configuration can be found here:
Copy the following text and click on "Import" in the plugin.
Map settings
Name |
Value |
Description |
Region |
Brazil |
List with all available regions |
Width |
auto |
Width of the map in pixel. 'Auto' means that the map is centered in the available width. |
Height |
auto |
Height of the map in pixel. 'Auto' means that the map is centered in the available height. |
Display mode |
Markers |
Specifies the display mode of the map. |
Border resolution |
Countries |
The resolution of the map borders. |
Tooltips |
On |
Allows to display a tooltip for highlighted map elements. |
Tooltips: Trigger |
focus |
The user interaction that causes the tooltip to be displayed. |
Tooltips: Use HTML |
On |
Specifies if the tooltips should use HTML. This allows to customize the tooltips even more. For example, if this property is on, it is possible to display images wihtin the tooltip. |
Map template
CSS |
#{cssid} .tooltip-title {
white-space: nowrap;
text-align: center;
}
#{cssid} .google-visualization-tooltip {
border-radius: 20px;
}
#{cssid} .google-visualization-tooltip-item {
padding: 0 15px;
}
#{cssid} circle {
cursor: pointer;
}
#{cssid} {
border-radius: 10px;
overflow: hidden;
} |
HTML |
<div id="{cssid}">
%%map%%
</div> |
JavaScript
Executed when a marker/region is clicked.
Click value can be defined for each map element.
|
|
Map elements (10)
Color |
Name |
Click Value |
|
São Paulo |
|
|
Rio de Janeiro |
|
|
Salvador, Brasil |
|
|
Brasília |
|
|
Fortaleza |
|
|
Belo Horizonte |
|
|
Manaus |
|
|
Curitiba |
|
|
Recife |
|
|
Porto Alegre |
|
Comments
If you need help or have questions, please leave a comment.