Wikishire:Map: Difference between revisions
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[File:Wikishire Map.png|thumb|right|600px|The standard colour map]] | [[File:Wikishire Map.png|thumb|right|600px|The standard colour map]] | ||
'''Wikishire's mapping service''' is available at | '''Wikishire's mapping service''' is available at https://wikishire.co.uk/map/. It allows Great Britain and Ireland to be explored and a range of useful data presented right on the map itself. | ||
==Navigation== | ==Navigation== | ||
Line 9: | Line 9: | ||
===Gazetteer=== | ===Gazetteer=== | ||
If a place name is entered it will be searched in the gazetteer. If it is a unique place name in Britain and Ireland then a pin will be placed on the map to indicate the place, with a pop-up cloud to label it; for example [ | If a place name is entered it will be searched in the gazetteer. If it is a unique place name in Britain and Ireland then a pin will be placed on the map to indicate the place, with a pop-up cloud to label it; for example [https://wikishire.co.uk/map/#Newcastle_upon_Tyne@54.975,-1.602 Newcastle-upon-Tyne]. If the name is not unique the user will be presented with a choice of place names listed along with the relevant county and co-ordinates to aid selection, for example [https://wikishire.co.uk/map/#Newport Newport]. | ||
===County lookup=== | ===County lookup=== | ||
If a county name is entered the map will zoom to that county and place a pin in the geographical centre. A cloud pop-up will then display information about the county; for example: [ | If a county name is entered the map will zoom to that county and place a pin in the geographical centre. A cloud pop-up will then display information about the county; for example: [https://wikishire.co.uk/map/#Huntingdonshire Huntingdonshire]. | ||
===Postcode lookup=== | ===Postcode lookup=== | ||
If a postcode is entered then a pin will be placed on the map to indicate the place, with a pop-up cloud to label into which county the postcode falls. For example: [ | If a postcode is entered then a pin will be placed on the map to indicate the place, with a pop-up cloud to label into which county the postcode falls. For example: [https://wikishire.co.uk/map/#SW1A1AA/centre=51.501,-0.142/zoom=14 SW1A 1AA] This also works for the postcode district only; for example: [https://wikishire.co.uk/map/#B4/centre=52.484,-1.894/zoom=14 B4] | ||
==Geolocation== | ==Geolocation== | ||
Line 23: | Line 23: | ||
The map can have a number of layers overlaid onto it to show different features, by means of the 'layer' button in the bottom-right of the screen. The features are: | The map can have a number of layers overlaid onto it to show different features, by means of the 'layer' button in the bottom-right of the screen. The features are: | ||
*[ | *[https://wikishire.co.uk/map/#/centre=53.448,-4.500/zoom=7/layer=C/base=outline Cities] | ||
*[ | *[https://wikishire.co.uk/map/#/centre=53.602,-1.816/zoom=10/layer=T/base=outline Towns] | ||
*[ | *[https://wikishire.co.uk/map/#/centre=54.848,-6.163/zoom=9/layer=NT National Trust] | ||
*[ | *[https://wikishire.co.uk/map/#/centre=59.039,-2.932/zoom=11/layer=A/base=outline Antiquity] | ||
*[ | *[https://wikishire.co.uk/map/#/centre=55.042,-2.271/zoom=10/layer=R Roman antiquity] | ||
*[ | *[https://wikishire.co.uk/map/#/centre=55.258,-2.707/zoom=10/layer=F Forests / woodland] | ||
*[ | *[https://wikishire.co.uk/map/#/centre=53.037,-4.096/zoom=12/layer=H/base=outline Hills] | ||
*[ | *[https://wikishire.co.uk/map/#/centre=57.225,-4.541/zoom=13/layer=W/base=outline Water features] | ||
The National Trust layer contains information on [[National Trust for Places of Historic Interest or Natural Beauty|National Trust]], [[National Trust for Scotland]] and [[An Taisce]] properties. | The National Trust layer contains information on [[National Trust for Places of Historic Interest or Natural Beauty|National Trust]], [[National Trust for Scotland]] and [[An Taisce]] properties. | ||
Line 38: | Line 38: | ||
==Backgrounds== | ==Backgrounds== | ||
The map background itself defaults to the standard colour map of counties. There are four choices which can be selected using the menu in the top-right of the screen: | The map background itself defaults to the standard colour map of counties. There are four choices which can be selected using the menu in the top-right of the screen: | ||
*[ | *[https://wikishire.co.uk/map/#/base=colour Colour]: The counties identified in colour. | ||
*[ | *[https://wikishire.co.uk/map/#/base=outline Outline]: The counties outlined in purple. | ||
*[ | *[https://wikishire.co.uk/map/#/base=colour_detached Colour Det]: The counties, with detached parts identified in colour. | ||
*[ | *[https://wikishire.co.uk/map/#/base=outline_detached Outline Det]: The counties, with detached parts, outlined in purple. | ||
==Overlays== | |||
There are many overlays that can be added to the map, including all the Hundreds and other divisions available in the [https://wikishire.co.uk/lookup/ Data lookup] area. | |||
For instance: | |||
*[https://wikishire.co.uk/map/#/base=outline/show=GlamorganHundreds Hundreds of Glamorgan] | |||
*[https://wikishire.co.uk/map/#/base=outline/show=KentLathes Lathes of Kent] | |||
*[https://wikishire.co.uk/map/#/base=outline/show=RenfrewshireWards Wards of Renfrewshire] | |||
*[https://wikishire.co.uk/map/#/base=outline/show=LindseyRidingsA Ridings of Lindsey] | |||
Several are available in both ''Definition A'' (without detached parts) and ''Definition B'' (with detached parts) | |||
*[https://wikishire.co.uk/map/#/base=outline/show=FifeDistrictsA Districts of Fife (Definition A)] | |||
*[https://wikishire.co.uk/map/#/base=outline_detached/show=FifeDistrictsB Districts of Fife (Definition B)] | |||
*[https://wikishire.co.uk/map/#/base=outline/show=SussexRapesA Rapes of Sussex (Definition A)] | |||
*[https://wikishire.co.uk/map/#/base=outline_detached/show=SussexRapesB Rapes of Sussex (Definition B)] | |||
==Map widgets== | ==Map widgets== | ||
To incorporate inset maps on your own pages, use the following code: | To incorporate inset maps on your own pages, use the following code: | ||
<pre><script src=" | <pre><script src="https://wikishire.co.uk/map/inset"></script> | ||
<div id="map"></div> | <div id="map"></div> | ||
</pre> | </pre> | ||
The inset code can be passed parameters to configure aspects of the map as follows: | The inset code can be passed parameters to configure aspects of the map as follows: | ||
*To change the base layer, use ''base=name'', where name is one of colour, outline, colour_detached or outline_detached. | *To change the base layer, use ''base=name'', where name is one of colour, outline, colour_detached or outline_detached. | ||
*To change the name of the DIV in which the map is drawn, use ''id=something'', e.g. | *To change the name of the DIV in which the map is drawn, use ''id=something'', e.g. https://wikishire.co.uk/map/inset?id=something, draws into <div id="something"> | ||
*To specify the centre of the map, use ''centre=lon,lat'' | *To specify the centre of the map, use ''centre=lon,lat'' | ||
*To specify the zoom level of the map, use ''zoom=zoomlevel'' | *To specify the zoom level of the map, use ''zoom=zoomlevel'' | ||
The map can be controlled using the standard OpenLayers functions, where the map object is of the form ''id_map''. This allows multiple maps on the same page to be controlled independently. | The map can be controlled using the standard OpenLayers functions, where the map object is of the form ''id_map''. This allows multiple maps on the same page to be controlled independently. | ||
For instance, if you use | For instance, if you use https://wikishire.co.uk/map/inset?id=colour and https://wikishire.co.uk/map/inset?id=outline&base=outline, two OpenLayers objects are created, ''colour_map'', and ''outline_map''. | ||
[[Category:Wikishire]] | [[Category:Wikishire]] |
Latest revision as of 16:38, 18 May 2023
Wikishire's mapping service is available at https://wikishire.co.uk/map/. It allows Great Britain and Ireland to be explored and a range of useful data presented right on the map itself.
The map can be scrolled in a number of ways: using the arrow buttons in the top-left of the screen, by means of the cursor keys, or clicking-and-dragging with the mouse for desktop users. Touchscreen users can drag a finger on the screen to re-centre the map. Zooming in and out can be performed by means of the zoom slider in the top-left of the screen or the mouse's scroll wheel for desktop users. Touchscreen users can use the usual pinch-to-zoom gesture.
Search
The search box at the top-left of the screen allows a range of data to be presented on the map. A user can enter a place name, a county name, a postcode, a map grid reference or latitude/longitude pair.
Gazetteer
If a place name is entered it will be searched in the gazetteer. If it is a unique place name in Britain and Ireland then a pin will be placed on the map to indicate the place, with a pop-up cloud to label it; for example Newcastle-upon-Tyne. If the name is not unique the user will be presented with a choice of place names listed along with the relevant county and co-ordinates to aid selection, for example Newport.
County lookup
If a county name is entered the map will zoom to that county and place a pin in the geographical centre. A cloud pop-up will then display information about the county; for example: Huntingdonshire.
Postcode lookup
If a postcode is entered then a pin will be placed on the map to indicate the place, with a pop-up cloud to label into which county the postcode falls. For example: SW1A 1AA This also works for the postcode district only; for example: B4
Geolocation
A 'locate' button in the bottom-right of the screen allows the user to place a pin on the map at their current location, assuming that place is in Great Britain or Ireland! This is especially useful for mobile users who can determine in which county they are currently situated.
Layers
The map can have a number of layers overlaid onto it to show different features, by means of the 'layer' button in the bottom-right of the screen. The features are:
The National Trust layer contains information on National Trust, National Trust for Scotland and An Taisce properties.
Be warned that there are so many forests, hills and water features that the map must be suitably zoomed to be able to see any of the map underneath thousands of pins!
Backgrounds
The map background itself defaults to the standard colour map of counties. There are four choices which can be selected using the menu in the top-right of the screen:
- Colour: The counties identified in colour.
- Outline: The counties outlined in purple.
- Colour Det: The counties, with detached parts identified in colour.
- Outline Det: The counties, with detached parts, outlined in purple.
Overlays
There are many overlays that can be added to the map, including all the Hundreds and other divisions available in the Data lookup area. For instance:
Several are available in both Definition A (without detached parts) and Definition B (with detached parts)
- Districts of Fife (Definition A)
- Districts of Fife (Definition B)
- Rapes of Sussex (Definition A)
- Rapes of Sussex (Definition B)
Map widgets
To incorporate inset maps on your own pages, use the following code:
<script src="https://wikishire.co.uk/map/inset"></script> <div id="map"></div>
The inset code can be passed parameters to configure aspects of the map as follows:
- To change the base layer, use base=name, where name is one of colour, outline, colour_detached or outline_detached.
- To change the name of the DIV in which the map is drawn, use id=something, e.g. https://wikishire.co.uk/map/inset?id=something, draws into <div id="something">
- To specify the centre of the map, use centre=lon,lat
- To specify the zoom level of the map, use zoom=zoomlevel
The map can be controlled using the standard OpenLayers functions, where the map object is of the form id_map. This allows multiple maps on the same page to be controlled independently. For instance, if you use https://wikishire.co.uk/map/inset?id=colour and https://wikishire.co.uk/map/inset?id=outline&base=outline, two OpenLayers objects are created, colour_map, and outline_map.