MyWiki:Graphics Lab/Map workshop/Archive/Jul 2025

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

{{Wikipedia:Graphics Lab/Map workshop/Archive/2023}}

Change state color

[edit source]

How do you change a state from 1 color to another? Hamon669 (talk) 11:12, 26 June 2025 (UTC)

@Hamon669: it depends on the map. Assuming that you're still referring to commons:File:Age_of_consent_-_United_States.svg.
  • Download the map and open it using a good text editor.
  • To change the colour of Oklahoma (from blue to green), all you need to do is search for id="OK" class="cls-2" and replace it with id="OK" class="cls-6".
M.Bitton (talk) 14:25, 26 June 2025 (UTC)
It worked, thank you. That said, the thumbnail on the article didn't change. How do I change that? Hamon669 (talk) 22:33, 26 June 2025 (UTC)
It has changed, you're just looking at the cached version. Clear your browser's cache to see the updated version. M.Bitton (talk) 22:42, 26 June 2025 (UTC)

File:Map of the Mambiloid languages.svg

[edit source]
Article(s)
Nizaa language
Request
Could someone expand the legend to cover all the languages listed on the map or add some kind of pattern or symbol to the map? This would help it meet MOS:COLOR.
Please ping when done creating the revised image or if you have any concerns.
Thanks – PharyngealImplosive7 (talk) 01:08, 3 July 2025 (UTC)

world map with stripes

[edit source]
Article(s)
Wikipedia:Blank maps
Request

Hi, Can somebody please create an svg file of it? I would like to adjust the map for updating an existing map on Wikipedia. Please in a way that it's possible to change the colors of both strips for all countries separately on Inkscape or with the Windows app Editor -- WikiPate (talk) 15:43, 10 July 2025 (UTC)

Discussion
@WikiPate: Can you please elaborate on the purpose of the SVG? If a country is fully covered by one stripe, what is the point of chenging the alternate stripe colour? (Please ping me in your answer.) cmɢʟeeτaʟκ 23:49, 14 July 2025 (UTC)
@Cmglee I want to update this map: File:EU FTA 2024.svg. For example Morrocco has both an FTA in force and a new one on hold.

And I want to keep this map updates for the future: File:Countries served by Wizz Air from the UAE.svg.

I only have Inkscape and afaik it's not possible to create colored stripes with Inkscape. (But Inkscape can turn a striped country into a non-striped country.) I don't want to ask people in the future everytime a new country needs to be striped so this is the work-around.

It does not happen that one country is fully covered by one stripe, because small countries are shown as a circle. It would be nice if every circle of those small countries could be covered by 50% of the first and 50% by the second color. WikiPate (talk) 07:46, 15 July 2025 (UTC)
Blank world map in Robinson projection from http://commons.wikimedia.org/wiki/File:BlankMap-World.svg adapted to allow countries to be shaded in stripes
@WikiPate: How does this look? I haven't worked on the circles yet. Similar to commons:File:BlankMap-World.svg, the colours can be specified using the top-level-domain country code but appending 1 and 2 to specify the two fills e.g. in [the first version of] this map:
.aq1 { fill:#9cf; } .aq2 { fill:#6cf; }
.cl1 { fill:#f00; } .cl2 { fill:#f66; }
.id1 { fill:#0fc; } .id2 { fill:#0c9; }
.ru1 { fill:#ff0; } .ru2 { fill:#fc0; }
.va1 { fill:#f0f; } .va2 { fill:#f6f; }

cmɢʟeeτaʟκ 00:46, 16 July 2025 (UTC)

P.S. The angle I used works better with New Zealand and Japan. cmɢʟeeτaʟκ 00:53, 16 July 2025 (UTC)
@Cmglee: Yes looks very good. I tried to change the color of a country and it worked! With including the method for the circles, it should be finished.

Including the link "https://en.wikipedia.org/wiki/Country_code_top-level_domain" would be nice for other editors to find the country codes faster.

And putting the code for changing the country colors to the very top of the svg code would be also helpful. As this is the main thing editors will change in the future. Editors will likely not change the colors of the oceans and strokes or the size of the circles. WikiPate (talk) 16:17, 16 July 2025 (UTC)
 Done @WikiPate: Thanks, I've split the spots in the opposite direction and updated the example to show solid and striped use as below. I'll leave it to someone else to update the documentation; do let me know if the following example code is unclear. Cheers, cmɢʟeeτaʟκ 19:25, 16 July 2025 (UTC)
@Cmglee Thank you! The FTA map is also finished: File:EU FTA 2024.svg.
I added a description on the Wikimedia Commons page on how to update the map and hope, that editors will follow it. WikiPate (talk) 15:34, 17 July 2025 (UTC)
/* Solid */
.cl { fill:#0c0; }
.st { fill:#f00; }
/* Striped */
.aq1 { fill:#ff0; } .aq2 { fill:#fc0; }
.bm1 { fill:#00f; } .bm2 { fill:#9cf; }
.cu1 { fill:#c00; } .cu2 { fill:#960; }
.it1 { fill:#09f; } .it2 { fill:#6cf; }
.jp1 { fill:#f0f; } .jp2 { fill:#f6f; }
.nz1 { fill:#000; } .nz2 { fill:#666; }

Blank {{Infobox mapframe}}

[edit source]
Article(s)
Epping, Essex, City of London and likely others
Request
Not sure where to post this query (please move to a more appropriate page if neeeded): The bottom map in the top-right infobox of Epping, Essex and City of London is solid blue, likely because the coordinates have been set to 0° latitude and longitude. The wikicode has
|module                    = {{Infobox mapframe|stroke-width=1|zoom=12|width=240}}
and
| module             = {{infobox mapframe|zoom=13}}
respectively. I'm unsure how to fix it. Can someone please help? Thanks, cmɢʟee τaʟκ (please add {{ping|cmglee}} to your reply) 11:51, 29 August 2025 (UTC)
Discussion
{{resolved}} This was an issue with maplink which has been fixed. CMD (talk) 08:48, 2 September 2025 (UTC)

Perth metropolitan area

[edit source]
Article(s)
Perth, Perth metropolitan region, Metropolitan Region Scheme, and six articles on other Wikipedias
Request
This is a GIF. Could you create an SVG with the same content? Nyttend (talk) 20:15, 11 July 2025 (UTC)
Discussion
Are those "Shire of X" necessary? From what I can tell, they are unrelated to the Perth metropolitan region. M.Bitton (talk) 23:39, 11 July 2025 (UTC)
Are you questioning the boundaries, or the labels, or both? I think it's useful to include both, since they show the bordering councils and provide a little additional context: here are the metropolitan councils, and also here are the borders of the ones just outside the metropolitan area. Nyttend (talk) 19:45, 15 July 2025 (UTC)
Image's request under progression Request taken. I will include as much of what's mentioned in Perth metropolitan region as possible (we can always remove what's unnecessary afterwards). M.Bitton (talk) 20:11, 15 July 2025 (UTC)
 Done @Nyttend: please let me know if I missed something. The only part that I'm not convinced about is Kings park (I have no idea why it's highlighted). M.Bitton (talk) 15:59, 19 July 2025 (UTC)
M.Bitton Thanks very much! The Kings Park article says that the park is an unincorporated area (one of just two in the state, along with Houtman Abrolhos), so probably it's coloured differently to show that it's not part of any of these councils. Nyttend (talk) 20:21, 23 July 2025 (UTC)
PS, Rottnest Island is also unincorporated. Could you change it to the same colour as Kings Park? Nyttend (talk) 20:23, 23 July 2025 (UTC)
 Done @Nyttend: I added it as an extra layer that can be hidden if needs be. M.Bitton (talk) 23:33, 23 July 2025 (UTC)
Thanks! And now I see what you mean by "Shire of X" — to take the tiniest example, I thought you were wondering whether "Shire of Peppermint Grove" should be removed, but now I see you just wanted to cut it down to "Peppermint Grove". No complaints on my part; someone wanting to know the status of an individual council can look this up somewhere else. Nyttend (talk) 07:46, 24 July 2025 (UTC)