File talk:World map configurable.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Proposals[edit]

Because .land includes both coasts and borders, and editing .border doesn’t affect .land, it’s not possible to display borders differently than coasts (e.g. coasts with stroke-width: 1.0, and borders with stroke-width: 0.5). I think a separate .coast class should be added to allow this.

Given that the constituent countries of the Kingdom of the Netherlands (Aruba, Curaçao, the Netherlands, and Sint Maarten) and the Danish Realm (Denmark, the Faroe Islands, and Greenland) can be selected independently, so should the constituent countries of the United Kingdom (England, Scotland, Wales, and Northern Ireland). Brainiac242 (talk) 20:06, 7 March 2021 (UTC)[reply]

Thanks for your suggestions, I'll try to implement them later. Heitordp (talk) 03:51, 24 March 2021 (UTC)[reply]
@Brainiac242: I added an option to show the UK countries separately. Heitordp (talk) 04:49, 17 May 2023 (UTC)[reply]

Issues[edit]

.land { fill: #e0e0e0; stroke: #000000; stroke-width: 0.5 }

.border { fill: none }

.disputed { stroke: #000000; stroke-width: 0.5; stroke-linecap: round; stroke-linejoin: round; fill: none }

I don’t know why, but if you write this, some disputed borders aren’t shown properly. For example, writing “.azadgilgit1, .arunachal1 { display: none }; .azadgilgit2, .arunachal2 { display: yes }”, shows these borders thinner than the rest.

It can be fixed by writing “.border { stroke: #000000; stroke-width: 0.5; stroke-linecap: round; stroke-linejoin: round; fill: none }”, but this also shows the borders inside the lakes, so if you don’t want those, there’s no luck.

It looks like those borders are being modified by .border, but not by .disputed or .land. I tried, but I can’t find the problem in the code. Brainiac242 (talk) 20:06, 7 March 2021 (UTC)[reply]

The way that I wrote the code, the land class was only supposed to contain a fill color, and the coasts were not supposed to be colored. To color the coasts, their paths would have to be added as a separate object. Heitordp (talk) 03:51, 24 March 2021 (UTC)[reply]
Regardless of whether or not you intended for the land class to be used this way, the truth is, it works. You can download the file, write “.land { fill: #c0c0c0; stroke: #000000; stroke-width: 0.5 }; .border { fill: none }; .disputed { fill: none }”, and it works. It shows both disputed and undisputed borders correctly. This is very useful for those who, like me, prefer borders to be shown black instead of white. Showing the borders black, but not the coasts, looks terrible, and doing this allows you to show them both with the same style.
The issue is that it shows all borders correctly only with some configurations. For example, it properly shows Azad Kashmir and Gilgit-Baltistan as a separate entity, or as part of India, but not as part of Pakistan. I’m not proposing you add a new coast class here (I did so in the section above), I’m simply suggesting you fix an issue with the configuration of diputed borders, which is the intended purpose of this file. I apologize if I hadn’t explained myself correctly. Brainiac242 (talk) 11:28, 26 March 2021 (UTC)[reply]
The code moves disputed areas between countries by redrawing them without borders, then drawing only the appropriate borders around them. For example, Gilgit-Baltistan is first drawn as part of India. If you set it as part of Pakistan, the area is redrawn over India with the color of Pakistan, but without borders around the area. After that, only the appropriate borders are drawn, between Gilgit-Baltistan and India using class .disputed, and between Gilgit-Baltistan and China and Afghanistan using class .border. But if you don't define a width in class .border, the borders with China and Afghanistan are not redrawn in this step. These borders are still visible because they were drawn first with class .land, but they become thin because half of their width was covered by the redrawn area of Gilgit-Baltistan.
The appropriate way to fix this problem, as you already found, is to set a width in class .border. The code really needs a width in this class, even if class .land also contains a width. I understand that you don't like borders drawn inside lakes, so I added a property to control whether to show them. If you set that property to none, and keep a width in class .border, I think you can achieve your desired result.
I also realized that it's currently possible to color the coasts and borders with different colors. The coast color can be set in the stroke of class .land, and the border color in classes .border and .disputed. But when the image is zoomed out, some of the coast color seems to get mixed into the border color too. Heitordp (talk) 07:20, 5 April 2021 (UTC)[reply]

Kosovo doesn’t have a circle even though many larger countries, like Montenegro or Fiji, and other small disputed areas, like Northern Cyprus, do. Brainiac242 (talk) 14:34, 20 October 2021 (UTC)[reply]

Added circle. Brainiac242 (talk) 08:39, 24 October 2021 (UTC)[reply]
@Brainiac242: There are big circles for UN member states and other undisputed countries (Vatican City), and small circles for disputed countries and territories. I added a circle if the country or territory was smaller than the respective circle for its category. Montenegro and Fiji are smaller than the big circle, and Northern Cyprus is smaller than the small circle, but Kosovo is slightly larger than the small circle.
I also noticed that you changed the circle of Palestine to a big circle. Palestine is not a UN member state and it's disputed, so I think that it should have a small circle. In addition, the way that it looks now the circle could be confused as representing Israel. If you think that Palestine should have a big circle because it's a UN observer state like Vatican City, I suggest moving the circle slightly to the right, or adding a circle also for Israel.
I also noticed that you changed the borders between Gilgit-Baltistan and Afghanistan and China to disputed. These borders are not disputed, because Afghanistan and China do not claim Gilgit-Baltistan. Whether the area is considered part of Pakistan, India or independent, these borders are always recognized as international. Only the borders between Gilgit-Baltistan and the rest of India and Pakistan should be shown as disputed. Heitordp (talk) 23:52, 6 November 2021 (UTC)[reply]
@Heitordp: Removed circle for Kosovo. Moved circle for Palestine to the right. Fixed mistake regarding disputed borders. I also added a circle for the Solomon Islands because, though the country is larger than the circle, the area is distributed among many small islands. This makes it hard to read in choropleth maps, especially in low-resolution previews. It now looks similar to other nearby island countries like Fiji and Vanuatu. Feel free to remove it if you disagree. Brainiac242 (talk) 22:49, 10 November 2021 (UTC)[reply]
@Brainiac242: Thank you for the changes. The circle for the Solomon Islands looks good. Heitordp (talk) 02:49, 11 November 2021 (UTC)[reply]

Crimea?[edit]

I have realized that, when moving over the Crimea peninsula, that the hover text will then be "Crimea". However, Crimea is not a country. The text should thus be "Ukraine" or maybe "Ukraine (occupied by Russia)" or something like that. 194.62.169.86 19:04, 12 October 2020 (UTC)[reply]

This map is a configurable template. If you open the file with a text editor, you'll see options for showing Crimea separately, as part of Ukraine or as part of Russia. The file has similar options for many other disputed areas as well. If you want to use this template to make a map showing Crimea as part of Ukraine, set the options accordingly and the text will show "Ukraine" when you move the pointer there. Heitordp (talk) 09:56, 14 October 2020 (UTC)[reply]

Add option to seperate UK countries[edit]

I want England, Scotland, Wales and Northern Ireland to all be seperate objects, with an option like .uk{display: yes} to make it a single object QuickQuokka [⁠talkcontribs] 18:28, 20 June 2022 (UTC)[reply]

@QuickQuokka: I added an option to show the UK countries separately. Heitordp (talk) 04:49, 17 May 2023 (UTC)[reply]