Module talk:Mapframe

This is an old revision of this page, as edited by TheDJ (talk | contribs) at 12:08, 11 June 2022 (Help with map Q112251746: Reply). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 3 years ago by TheDJ in topic Help with map Q112251746

UK Wikidata items with and without maps

 
Notable areas around Shoreham-by-Sea

I have been able to add maps on to pages such as the Upper Beeding parish and Brighton and Hove using the wikilink template and wikidata code, but I don't understand why some wikidata area items are connected to maps and some are not.

I am now trying to use the same method to add a map for Southwick, but it doesn't seem to have a map associated with it. I am guessing that is because it is of a different governmental organisational level. Is that correct?

I am therefore look for an area with a map. It might be that I will have to use the map of the entire Adur District, but I don't think so as Coombes, Lancing and Sompting all have maps associated with them and they are in the same District.

It could be that I should use the Shoreham-by-Sea map but this map (to the right) doesn't look correct - it should cover a much bigger area - and if it is not correct, what should I do about it?

Can anyone help me with this or explain it to me?

And finally, am I able to make maps that do not exist and what is the easiest way to do this (preferably without having to draw it and work out borders myself)? Many thanks. Paolo Oprandi (talk) 17:36, 31 December 2021 (UTC)Reply

@Riparia riparia: the data is being automatically drawn from OpenSteetMap. See [1] — Martin (MSGJ · talk) 22:32, 2 March 2022 (UTC)Reply
mw:Help:Extension:Kartographer/OSM explains the link between OSM and Wikidata — Martin (MSGJ · talk) 22:34, 2 March 2022 (UTC)Reply

Many maps

How do I specify a manual override coordinates so one article can have many maps?

Please reply at Template_talk:Infobox_building#mapframe-coordinates, not here.

Thank you CapnZapp (talk) 19:34, 26 April 2022 (UTC)Reply

Shape

I can't make shape map for Uttara. Can anyone please give instructions for it? I tried it from doc of template but can't understand. Mehedi Abedin 12:00, 16 May 2022 (UTC)Reply

See Wikipedia:Creating shape maps from OpenStreetMap data. ɱ (talk) 18:18, 16 May 2022 (UTC)Reply

No outline around map object

Hello, for some reason, the outline doesn't work on all objects. It's shown here with wikidata:

Klipriviersberg Nature Reserve

but it doesn't work here:

Umtiza Nature Reserve

Both have wikidata and wikipedia entries. It also doesn't work with {{maplink}} or <mapframe>. Why is this? Thank you Maqdisi (talk) 05:41, 2 June 2022 (UTC)Reply

There is no shape being returned by the shape api. https://maps.wikimedia.org/geoshape?getgeojson=1&ids=Q111994013 I added the boundary property to the geoshape because "Currently, only relations with type=multipolygon, type=route, and type=boundary will display on maps.". We'll see if that fixes it within a couple of days. —TheDJ (talkcontribs) 11:44, 2 June 2022 (UTC)Reply

Clicking a shape with from key doesn't work

Hello, I have something like this:

{{Maplink|frame=yes|frame-coord={{coord|-35.579|21.824|}}|zoom=5
|type=shape|from=Southwest Indian Seamount Marine Protected Area.map|title=Shape|description=Description of shape
|type2=shape|from2=Agulhas Bank Complex Marine Protected Area.map|title2=Shape|description2=Description of shape
}}

]

 
Map

But clicking on it won't show the title popup and description. Also, I'm unable to change the colours of the shape if it uses `from`.

Thank you, Maqdisi (talk) 10:19, 3 June 2022 (UTC)Reply

When using |from= you are getting the geojson from the map file from Commons, e.g. your second one at commons:Data:Agulhas_Bank_Complex_Marine_Protected_Area.map. I think any changes need to be made to that file or a duplicate made with your requirements, e.g adding a title to the features block with "title":"test title". —  Jts1882 | talk  13:28, 3 June 2022 (UTC)Reply
I now see this is a new file that you have created so I've added a title that can now be seen on the map. —  Jts1882 | talk  13:32, 3 June 2022 (UTC)Reply

Help with map Q112251746

 
Map

Can I please get a check I've done wikidata:Glen Innes to Tamaki Drive Cycleway and OSM correctly? The map is not showing up. Thanks F (talk) 08:21, 11 June 2022 (UTC)Reply

It should be ok, but I believe database synchronisation has been turned off again for a while already. —TheDJ (talkcontribs) 12:08, 11 June 2022 (UTC)Reply