Wikipedia:Creating shape maps from OpenStreetMap data: Difference between revisions

Content deleted Content added
No edit summary
Line 2:
This is a tutorial for creating interactive maps on Wikipedia for shapes using [[OpenStreetMap]] data, available on a compatible [[Open Database License]]. This is applicable for creating maps of neighborhoods, parks, historic districts, campuses, and most other present-day sites. For maps of lines (transit routes, roads, etc.), see [[Wikipedia:Creating route maps from OpenStreetMap data]].
 
This tutorial requires basic knowledge of:
== Part 1: Finding the data on OpenStreetMap ==
* finding Wikidata IDs
There are two methods you can use to find the space you want to map:
* using {{tl|Maplink}} and its parameters (some helpful substitutes may be {{tl|Infobox mapframe}} and {{tl|Maplink-road}})
If you need help please use the talk page, [[User talk:Ɱ]], or [[Module talk:Mapframe]].
 
=== MethodPart 1: UsingFinding the OpenStreetMapshape websitedata ===
There are twothree methods you can use to find the spacedata you want tofor your map:
 
=== Method 1: Wikidata ===
The first thing to try is the easiest. There's a possibility your data is already linked and you're ready to map. Create a test map in [[Special:MyPage/sandbox|your sandbox]]. You'll need to use {{tl|Maplink}} together with the Wikidata ID of the shape. As an example: <kbd><nowiki>{{maplink|frame=yes|type=shape|id=}}</nowiki></kbd> If it displays, great. You can use the map and add parameters to make it display to your liking. If the map data does not populate, the below methods are straight-forward and reliable:
 
=== Method 2: Using the OpenStreetMap website ===
[[File:Park OSM map.jpg|thumb|upright=1.8|After right-clicking the shape you want to map (for instance, Scioto Audubon Metro Park), click 'Query features' to bring up the lefthand toolbar. Select the feature name to bring up its relation.]]
#Go to [https://www.openstreetmap.org/ OpenStreetMap] and zoom into the general area where the shape is.
Line 11 ⟶ 19:
#Then search through the list for the shape you desire; selecting it will bring you the relation representing the shape, with the shape displayed beside it on the map.
 
=== Method 2:3 Using the OSM Relation Analyzer ===
If you already know how the relation would be tagged, the OSM Relation Analyzer can be more convenient. '''Note:''' this can only be used for shapes that are relations, not ways.
#Go to the [http://ra.osmsurround.org/ OSM Relation Analyzer].