User:Evad37/sandbox/mapframe

Automatic zoom and centering
T193455 1) Mapframe map with geoline data from Q1094308 {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"ExpandTemplates"},"type":"ExternalData","service":"geoline","ids":"Q1094308"} {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"ExpandTemplates"},"type":"ExternalData","service":"geoline","ids":"Q1094308"}
 * When viewing the page, most of Europe and the top half of Africa is visible in the frame, and the line featured isn't centered in the frame
 * When previewing the page from the wikitext editor, the frame is zoomed and centered such that the line feature is centred in the frame, and just fits within its extents
 * In Visual Editor (and in its visual changes preview), you get the same result as viewing the page
 * In Special:ExpandTemplates, you get a grey rectangle instead of a map
 * In Special:ExpandTemplates on test2wikipedia, you get the same result as previewing with the wikitext editor

'''1b) Maplink map with the same geoline data
 * When either viewing or previewing the page from the wikitext editor, the frame is zoomed and centered such that the line feature is centred in the frame, and just fits within its extents
 * In Visual Editor (and visual preview) the maplink map can not be viewed

1c) Another example: c:Data:Haarlem/Grote Kerk.map  { "type": "ExternalData",  "service": "page",  "title": "Haarlem/Grote Kerk.map" }  {  "type": "ExternalData",  "service": "page",  "title": "Haarlem/Grote Kerk.map" }

Displaying relations
T156433 2a) Mapframe map only showing geoline data in fullpage/dynamic view [just modified relation on OSM; we'll see what happens in about 24 hours from 14:46, 17 May 2018 (UTC) {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Expamples"},"type":"ExternalData","service":"geoline","ids":"Q1951720"} {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Expamples"},"type":"ExternalData","service":"geoline","ids":"Q1951720"}
 * On OSM, relation=street relation=route, route=associatedStreet

2b) Mapframe map showing geoline data in both thumbnail/static view and fullpage/dynamic view {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Expamples"},"type":"ExternalData","service":"geoline","ids":"Q1318331"} {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Expamples"},"type":"ExternalData","service":"geoline","ids":"Q1318331"}
 * On OSM, relation=route, route=road

2c) [just added relation to OSM; we'll see what happens in about 24 hours from 10:15, 17 May 2018 (UTC)] {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Expamples"},"type":"ExternalData","service":"geoline","ids":"Q295851"} {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Expamples"},"type":"ExternalData","service":"geoline","ids":"Q295851"}
 * On OSM, relation=associatedStreet

2c) [just modified relation on OSM; we'll see what happens in about 24 hours from 10:39, 17 May 2018 (UTC)] {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Expamples"},"type":"ExternalData","service":"geoline","ids":"Q4681793"} {"properties":{"stroke-width":6,"stroke":"#ff0000","title":"Expamples"},"type":"ExternalData","service":"geoline","ids":"Q4681793"}
 * On OSM, relation=route, route=associatedStreet