Help talk:Extension:Kartographer

About this board

Welcome to the Maps discussion. This is a place to provide overall maps feedback.

Previous discussion was archived at Help talk:Extension:Kartographer/Archive 0 and Help talk:Extension:Kartographer/Archive 1.

Sdkb (talkcontribs)

At w:Claremont Colleges#Colleges, it used to render properly, but checking recently, the southernmost college (Pomona) has only an outline, whereas the others have the fill. Any idea why that's happening?

Pomona is (I think) the only one to have a proper relation on OSM, so that might be part of it, but it shouldn't be an issue as it's still linked from OSM to Wikidata.

TheDJ (talkcontribs)

Generally, that means the relation on OSM has a hole in the outline and thus fill is not possible

Sdkb (talkcontribs)
Reply to "Help/possible bug"
Bigbossfarin (talkcontribs)
Delaware Aqueduct, New York

Why is the relation not shown?

Thiemo Kreuz (WMDE) (talkcontribs)

It's apparently a geoline. When I mark it as such it works.

The fact it doesn't work here on the talk page is a fascinating edge-case. As far as I can tell maps with external data just don't work on Flow talk pages because of it's architecture which bypasses pretty much everything other extensions like Kartographer expect.

I hope this helps.

Bigbossfarin (talkcontribs)

Thanks, that helps a lot! But I guess the parser still has problems with this relation. If I enlarge the map on en:User:Bigbossfarin, the relation disappears. Also changing the color is not possible. One problem could be that the relation consist of many paths.

Bigbossfarin (talkcontribs)
Reply to "Aqueduct"
94.234.103.179 (talkcontribs)

Is it possible to set fill-colour (or not fill at all) when showing a .map-files, or are you stuck with the shaded interior?

Thiemo Kreuz (WMDE) (talkcontribs)
94.234.98.10 (talkcontribs)

Thanks for the advice!

Reply to ".map files"

Scale on static maps?

2
Summary by Thiemo Kreuz (WMDE)
AxelBoldt (talkcontribs)

I understand that on the English Wikipedia, the maplink template creates static maps without zoom buttons and without a scale. Would it be possible to add the scale to those static maps? I find scales really important when dealing with maps, for orientation. Cheers, ~~~~

Bigbossfarin (talkcontribs)

in desktop version you can click on a maplink frame, to get an interactive version. Greetings

Reply to "Scale on static maps?"

Linear scale

2
Summary by Thiemo Kreuz (WMDE)
Lupe (talkcontribs)

Can I add a linear scale to a map?

Jdoggs91 (talkcontribs)

This is possible in leaflet (the js map library kartographer uses) however as far as I know it is not implemented in the extension.

Reply to "Linear scale"
Herzi Pinki (talkcontribs)

the examples on the page show coordinates with a precision of 14 digits. This is silly, and uneducational. My proposal is to truncate the example precision to 4 or 5 digits.

Abbe98 (talkcontribs)

Go ahead, it's probably just a result of editing tooling.

Reply to "uneducational examples"
Fl.schmitt (talkcontribs)

Could you please provide an example to draw a geoline based on a OSM way? All of your examples seem to refer to relation objects in OSM, not to ways. I wasn't able to modify the geoline example "Interstate Highway I-696" to work with an OSM way. If this is a technical restriction, it should be mentioned in the docs. Thanks a lot!

Reply to "geoline from OSM way?"

ExternalData Shapes too large on the sea

3
Seudo (talkcontribs)

Hi, when you zoom in the examples in the "External data" section, you may see that, for example, Alaska is shaded not only on the continent, but also on 20-km range in the sea. What is the reason? It looks wierd when you use this feature to color one province and not the neighbouring provinces.

Ok, I guess the shape from OpenStreetMap is retrieved. I wish it could use https://commons.wikimedia.org/wiki/Data:Alaska.map (although this one seems imperfect).

Abbe98 (talkcontribs)

It's the extend of the administrative area which extends beyond land area. If you zoom in on the west or east coast you will see the same thing.

Seudo (talkcontribs)

Ok, thanks!

Reply to "ExternalData Shapes too large on the sea"

Is there an option to automatically scale the map to the area with the shapes shown?

4
John Cummings (talkcontribs)
TheDJ (talkcontribs)

By default, it will try to zoom to make all the shapes fit into the viewport. But it is important to NOT specify a zoom factor in order for that to work and no centerpoint either. If your shapes span the entire earth as in your example, then zooming of course also will not work. In fullscreen mode, the zooming seems to assume a square viewport causing parts of the shapes, to sometimes spill out at the top or bottom (someone should probably file a ticket for that). And lastly, if you are in preview mode it also seems to work a bit different (not exactly sure why that is)

RobinLeicester (talkcontribs)

Note that TheDJ's descriptions relate to using the maplink template, rather than using a direct call to <mapframe>, with all in geoJSON. Template:maplink is easier to edit, will do the zooming etc for you , and I think will handle the multiple id entries in the way you need.

TheDJ (talkcontribs)

No I'm not

Reply to "Is there an option to automatically scale the map to the area with the shapes shown?"

Kartographer for 3d party wikies

4
Summary last edited by Ciencia Al Poder 10:10, 10 February 2022 1 year ago
Fokebox (talkcontribs)

Are there any plans to allow usage of the extension for 3d arty wikies?

Thiemo Kreuz (WMDE) (talkcontribs)
Fokebox (talkcontribs)

Yes, I meant to use Wikimedia Maps )

Aluminum ice (talkcontribs)

I just installed the Kartographer extension and it is not working for me. Here is my LocalSettings.php:

wfLoadExtension( 'JsonConfig' );

wfLoadExtension( 'Kartographer' );

$wgKartographerMapServer = 'https://tile.openstreetmap.fr';

$wgKartographerDfltStyle = 'osmfr';

Then I created a test page with just this simple entry:

<mapframe text="San Francisco" width=600 height=600 zoom=10 longitude=-122.3988 latitude=37.8013 />

but the only thing I get is a blank box.

Reply to "Kartographer for 3d party wikies"