Jump to content

Maps/Markup Language

From Meta, a Wikimedia project coordination wiki

Some thoughts about a possible markup language for Tomasz's Maps

[edit]

Some basic requirements:

  1. Easy to use
  2. similar to Wikipedia's available markup
  3. flexible to render different maps

The best solution seems to use TeX-formula-like syntax:

Maps could then be included as <map>options</map>.

The alternative of image-like [[Map:options]] isn't very practical.

Options

[edit]

When creating a map, three kinds of parameters have to be given

  1. which area the map should contain
  2. how the map has to look like (political, topological, satellite image, ...)
  3. which objects to show (cities, borders, rivers, ...)

Area

[edit]

Longitude and Latitude are the usual ways to specify coordinates on earth.

longitude=x°y'z"
longitude of the center of the map
latitude=x°y'z"
latitude of the center of the map
width=...
the width of the map in degrees (kilometers are quite ambiguous as the Earth isn't a cylinder).
height=...
the height of the map in degrees.

Most often nevertheless, an article's author doesn't know the coordinates of the area he wants to have a map of. He probably writes about a country or the area an animal lives in.

continents=...
A comma-separated list of contintents to show. North and South America are treated as two continents.
countries=...
A comma-separated list of the countries to show.
regions=...
A comma-separated list of regions to show (where region is considered to be the next sub-country entity, like US states, Polish voivodships or German Bundesländer)
seas=...
a comma-separated list of seas to show (e.g. Baltic sea, North sea)

All these can be given in parallel, resulting in a map showing all the specified places. Should cities be an option, too? They are somewhat ambiguous.

Appearance

[edit]
political
Show countries as coloured polygons, the sea is light blue.
satellite
Use Blue Marble satellite images to generate the map.
topographical
Generates a topograhical map.
borders
Draw borders. Can be used together with the above to add country information.
borders=number
Draw borders of sub-country enitities, too. The number specifies how many levels to show. 0=countries, 1=first level, etc.
rivers
Add rivers to the map. Can be combined with the above.
capitals
Add capitals to the map. Can be combined with the above.
cities
Add major cities to the map. Can be combined with the above.
cities=...
A comma-separated list of cities to include. Can be combined with the above. Can be given several times.

For displaying historical data (mostly borders, but also city data), we could also include add some time markup. But we don't have historical data (except 1988 country borders). See also: spacetime_DTD

Examples

[edit]
<map>
  satellite
  countries=Poland,Germany
  borders
  cities=Warszaw,Gliwicze,Gdansk,Kattowice
  cities=Berlin,Dresden,Frankfurt Main,Bonn
</map>

Problems with this syntax

[edit]

The biggest UI problem I see now is that there are many cities with the same name, and our data doesn't distinguish which one is the important one. For example there's more than one Łódź in Poland, more than one Poznań, more than one Kraków, and more than one Olsztyn (unlike other pairs, the other Olsztyn isn't one-cow village). Taw 15:22, 30 Aug 2003 (UTC)

What can be edited online

[edit]
Which raises an interesting question, what will the format of the political border be in Wikipedia? It will have to be something relatively easy to modify, because borders can change. -- Gutza 10:56, 17 Aug 2003 (UTC)

There's absolutely no hope of having that border data modifiable from Wiki textbox. Technically can't happen. But we could have coordinates and names modifiable that way. Taw 11:46, 17 Aug 2003 (UTC)

I assume the default names of the geographical locations (cities, countries, continents, and so on) will be in english (or the local language). But, ¿will be possible to modify them as, for example, the MediWiki messages to show appropiate names in each language? The table could be infinite so I think is better to specify both, coordinates and names for specifical localtions to show in the map, avoiding ambiguous names and translating them to the apropiate language, maybe:
cities=19º20'23",23º12'45",Londres|-38º1'3",80º12'56",Madrid
In many cases the information is in the article about the city, is possible to extract these information from it linking only the appropiate article? Why we need a new table to extract the coordenates of the different locations if these information is in wikipedia? Willy 16:13, 16 Mar 2004 (UTC)

Especific locations - Highlights

[edit]

If the program generates automaticaly national (and sub-national) boundaries, ¿shoul be possible to highlight with a different color especific sub-areas of the map givin any location (coordenates) of one internal point of the areas we want to highlight? These would be useful not only for countries, estates or provinces tables but to show other interesting regions like, Hispanoamérica, UE, OTAN, Euskal-Herria, ... an so on whose limits are not predefined (as continents or countries because there are no, in fact, political boundaries as the first's are) indicating one internal point for each country or region we want, for example:

Highlight=19º,35º|23º,46º13'
Willy 16:13, 16 Mar 2004 (UTC)