Maps in articles

This article shows how to insert maps into articles. It was formerly part of Creating, editing and formatting articlesExternal link which also describes limits and statistics.


Maps

Sections of recent 1:50,000 Ordnance Survey maps for England, Scotland, Wales and the Isle of Man can be displayed. Maps of Ireland (Northern Ireland and Eire) are not available using the syntax shown here.
  1. smallmap - 1km square. For 8 digit grid reference the displayed map has that reference at its centre. See examples for display with 4 and 6 digit references.
  2. map - 2km square, with the 1km square of the 4, 6 or 8 digit grid reference at the centre. For 6 or 8 digits a target circle is displayed, moved within the map section to the position of the grid reference.

Note that map and smallmap must be lower case - not MAP or SMALLMAP.

Examples of 1km square maps

The first three examples show the effect of changing the number of digits.
SK 17 51 and SK 175 515 and SK 1755 5155 all give the same position of the map, with the target circle at SK 1755 5155. The map centred on SK 1700 5100 is also shown.
SK 17 51 does not give a target circle.

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 17 51]

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 175 515]

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 1755 5155]

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 1700 5100]

The next examples show the size of the target circle, by moving the circle up progressively until it is just on the car park sign. The circle is always at the centre of a 1 km square map display - the area shown by the map changes as the target position changes.

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 1781 5173]

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 1781 5177]

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 1781 5185]

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright [smallmap SK 1781 5190]

Examples of 2km square maps


The larger 2km square map is centred on the grid square within which the 4 or 6 or 8 digit grid reference falls. A target circle can be moved within that grid square.

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright
1:50,000 Modern Day Landranger(TM) Map © Crown Copyright
[map SK 17 51] 4 digit reference, no target circle

1:50,000 Modern Day Landranger(TM) Map © Crown Copyright
+
1:50,000 Modern Day Landranger(TM) Map © Crown Copyright
[map SK 1780 5190] 6 0r 8 digit reference moves the target circle within the grid square.

Map in table

A map can be placed within a table. This allows text, an image, or an image with text to be placed to its left or right.


1:50,000 Modern Day Landranger(TM) Map © Crown Copyright
1:50,000 Modern Day Landranger(TM) Map © Crown Copyright
Kew Gardens


---------------
| [map TQ 18 76] | Kew Gardens |
---------------
TQ1876 : Kew Gardens Temperate House from the Pagoda by David Hawgood Kew Gardens Temperate House1:50,000 Modern Day Landranger(TM) Map © Crown Copyright


---------------
| [[[227173]]] | Kew Gardens Temperate House | [smallmap TQ 1843 7648] |
---------------
1:50,000 Modern Day Landranger(TM) Map © Crown Copyright
View of the Temperate House at Kew Gardens from the top of the pagoda. The public cannot normally climb the pagoda, but it was opened for a few months in summer 2006



---------------
| [smallmap TQ 18 76] | [image id=227173 text=View of the Temperate House at Kew Gardens from the top of the pagoda. The public cannot normally climb the pagoda, but it was opened for a few months in summer 2006] |
---------------



Map version

The Geograph website has available two sets of 1:50,000 scale OS maps, one from 2006, the other from 2008. You can specify which to display. For 2006, put revA after the grid reference. For 2008 map, put revB. If you put neither you get the most recent map. This has been used to show a "road under construction" map symbol where the road has now been built and current maps no longer show the "under construction" symbol. In the example below, the line of a cycle route past the Eton rowing lake has been changed - and the OS symbols have been changed. The example is "smallmap" but it works on "map" as well.

SU9278 : Thames Valley Cycle Route by Eton rowing lake by David Hawgood 1:50,000 Modern Day Landranger(TM) Map © Crown Copyright 2006 map 1:50,000 Modern Day Landranger(TM) Map © Crown Copyright 2008 map
[[[896056]]] [smallmap SU 9275 7865 revA] 2006 map [smallmap SU 9275 7865 revB] 2008 map


Google maps


You can embed a Google Map in an article, example:

Map in articleExternal link

To do it, put

[gmap=200]

where 200 is the id number of a search showing the images you want to include.

If you want to get a search of the images in an article, click 'KML' button, which is on the right in the footer copyright message for the article. And it will be in the page address, eg ...l.php?i=17413494 goes to make .
(note the search is not auto-updating, so if update the images in the article will need to run a new search)
Creative Commons Licence [Some Rights Reserved]   Text © Copyright November 2009, David Hawgood; licensed for reuse under a Creative Commons Licence.
KML
You are not logged in login | register
donate to geograph