This is a map of Turkey split into the provinces. In this example the map runs no actions when a region is clicked. It could easily be extended to open a lightbox, to show text below the map, to open a link or any other action. The following 81 provinces are available for Turkey:
- Adana
- Adıyaman
- Afyonkarahisar
- Agrı !Ağrı
- Aksaray
- Amasya
- Ankara
- Antalya
- Ardahan
- Artvin
- Aydın
- Balıkesir
- Bartın
- Batman
- Bayburt
- Bilecik
- Bingöl
- Bitlis
- Bolu
- Burdur
- Bursa
- Çanakkale
- Çankırı
- Çorum
- Denizli
- Diyarbakır
- Düzce
- Edirne
- Elazığ
- Erzincan
- Erzurum
- Eskişehir
- Gaziantep
- Giresun
- Gümüşhane
- Hakkâri
- Hatay
- Iğdır
- Isparta
- İstanbul
- İzmir
- Kahramanmaraş
- Karabük
- Karaman
- Kars
- Kastamonu
- Kayseri
- Kırıkkale
- Kırklareli
- Kırşehir
- Kilis
- Kocaeli
- Konya
- Kütahya
- Malatya
- Manisa
- Mardin
- Mersin
- Muğla
- Muş
- Nevşehir
- Niğde
- Ordu
- Osmaniye
- Rize
- Sakarya
- Samsun
- Siirt
- Sinop
- Sivas
- Şanlıurfa
- Şırnak
- Tekirdağ
- Tokat
- Trabzon
- Tunceli
- Uşak
- Van
- Yalova
- Yozgat
- Zonguldak
The tooltip was slightly customized by adding some CSS to the Map Template. It has round corners and throws no shadow. The needed styles can be found under “Map Templates” in the box below:
Copy the following text and click on "Import" in the plugin.
Map settings
Name |
Value |
Description |
Region |
Turkey |
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 |
Regions |
Specifies the display mode of the map. |
Border resolution |
Provinces |
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} .google-visualization-tooltip-item {
padding: 0 20px 0 16px;
}
#{cssid} .google-visualization-tooltip {
box-shadow: none;
border-radius: 5px;
}
#{cssid} path:not([fill="#f5f5f5"]) {
cursor: pointer;
} |
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 (81)
Color |
Name |
Click Value |
|
TR-48 |
|
|
TR-32 |
|
|
TR-33 |
|
|
TR-45 |
|
|
TR-17 |
|
|
TR-39 |
|
|
TR-34 |
|
|
TR-16 |
|
|
TR-81 |
|
|
TR-74 |
|
|
TR-26 |
|
|
TR-68 |
|
|
TR-18 |
|
|
TR-57 |
|
|
TR-31 |
|
|
TR-46 |
|
|
TR-52 |
|
|
TR-66 |
|
|
TR-24 |
|
|
TR-63 |
|
|
TR-49 |
|
|
TR-08 |
|
|
TR-61 |
|
|
TR-76 |
|
|
TR-73 |
|
|
TR-23 |
|
|
TR-09 |
|
|
TR-07 |
|
|
TR-01 |
|
|
TR-27 |
|
|
TR-47 |
|
|
TR-30 |
|
|
TR-65 |
|
|
TR-36 |
|
|
TR-75 |
|
|
TR-53 |
|
|
TR-59 |
|
|
TR-22 |
|
|
TR-10 |
|
|
TR-41 |
|
|
TR-54 |
|
|
TR-67 |
|
|
TR-37 |
|
|
TR-55 |
|
|
TR-28 |
|
|
TR-04 |
|
|
TR-03 |
|
|
TR-38 |
|
|
TR-06 |
|
|
TR-44 |
|
|
TR-12 |
|
|
TR-72 |
|
|
TR-64 |
|
|
TR-69 |
|
|
TR-43 |
|
|
TR-15 |
|
|
TR-20 |
|
|
TR-11 |
|
|
TR-14 |
|
|
TR-42 |
|
|
TR-70 |
|
|
TR-78 |
|
|
TR-40 |
|
|
TR-21 |
|
|
TR-56 |
|
|
TR-25 |
|
|
TR-13 |
|
|
TR-62 |
|
|
TR-02 |
|
|
TR-29 |
|
|
TR-51 |
|
|
TR-19 |
|
|
TR-58 |
|
|
TR-60 |
|
|
TR-05 |
|
|
TR-71 |
|
|
TR-80 |
|
|
TR-50 |
|
|
TR-35 |
|
|
TR-77 |
|
|
TR-79 |
|
Comments
If you need help or have questions, please leave a comment.