Welcome to Wikimedia Commons, RobinLeicester!

A barnstar for you! edit

  The Admin's Barnstar
Kris from Poland Kris1973 (talk) 14:21, 6 April 2014 (UTC)Reply

Hi Robin,

I came across your use of the OSM Location template map on the Leicester page and was added something similar to the Brighton and Hove page, but then realised it would be nice to have a city border. I see that you created the city body using an SVG you created from StreetMaps. Is it easy to do. I looked at your description of how you did it on your user page and I agree with the need, but it sounds complicated.

Many thanks, Riparia riparia (talk) 21:42, 1 November 2021 (UTC)Reply

Riparia riparia, I had a bit of a run-in with some of the UK county page editors who took against my trying to roll these out, so I have not been pursuing that. It is not really the wiki-solution because it is not easy to adapt/edit subsequently. The really anoying thing is that the real solution is to pull the OSM boundaries directly in from Q numbers in wikidata. {{Maplink}} already does this (To see it click the 'interactive full screen' link on the Leicester page), but it has not been available in the system that supplies the 'OSM Location map' mapping strand, so I fudged it with the SVG. There have been some undocumented improvements to this strand recently, so I will do a bit of investigating in case that is now available.
In the meantime, if you want to try your hand at SVG creation, I 'think' what I did was, having got he Q value working on the Interactive version, make a screen capture of the OSM map box, so you know the size and shape of your eventual SVG, then take another screen-capture of the 'Interactive' one, with the line in place. Import both into Inkscape, set the page size in pixels to match the OSM map and fit the bitmap with the line exactly over the one without. You can then select just the orange line to create a graphics path, which can be coloured to suit, remove both the bitmaps, ensure the background is transparent and save the SVG. The tricky bit in the middle is there to ensure that the svg has a central point and a 'pixel size' that matches the coords and size you specify when you bring it back into the OSM template. If you can thread your way through that lot, that will be quite an acheivement.
Alternatively, if you don't need the additional labelling etc that OSM Location map offers, you may be able to get what you are looking for using a framed version of maplink. It would be worth checking that out first. RobinLeicester (talk) 22:21, 1 November 2021 (UTC)Reply
Thanks for your speedy reply. I will take a look. I'd like to make more use of Magic Maps. They do a lot of what we need but I really feel like I need training in how to use them and fit them into wikipedia pages. What is your take on them? Riparia riparia (talk) 22:34, 1 November 2021 (UTC)Reply
Oh! I like that - so at least I have the city border when they expand the map now. — Preceding unsigned comment added by Riparia riparia (talk • contribs) 22:42, 1 November 2021 (UTC)Reply