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.

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 6 months 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"
Alphathon (talkcontribs)

It would seem there is an issue with the borders of Belgium. At almost all zoom levels the France–Belgium and Belgium–Netherlands borders are missing, as are the borders of the Belgian internal divisions and the borders the French region Hauts-de-France and the Dutch Province of Zeeland share with Belgium (for whatever reason the Grand Est-Belgium border and the North Brabant-Belgium border are visible). I would guess that there is some sort of LoD-like issue at play. If you need an example of this the missing national borders can be clearly seen on maps of the German states on Wikipedia (e.g. Brandenburg), which are at zoom "5". As far as I can tell the borders only show up at zoom levels "7" and "9". This issue doesn't seem to be present on openstreetmap.org.

Hopefully this is an appropriate place to report this. (I suspect it should probably be reported on the Phabricator but doing so seems non-trivial.)

Reply to "Missing Belgian borders"

Mapping places of interest with a single map

1
Stevio Bee (talkcontribs)

Hi All,


Apologies in advance, just getting my head around this extension

I am hoping someone can advise, I have a MediaWiki site and have a Kartographer map on the main page, I would like users (logged in) to be able to click on a spot and add a marker that links to page with information.

So, a user will add a place of interest on the 'main map' on the Main_Page and be able to create or edit the page associated with it.

Hope that makes sense.

My other issue ATM is using VisualEditor, i see no toolbox to be able to add anything?

Reply to "Mapping places of interest with a single map"

Maps no longer displaying in local wiki language

2
Bjankuloski06 (talkcontribs)

Hello everyone. I am an admin and content creator on mk.wiki and I have worked long and hard to have suitable names translated to all places in Macedonian that are of special historical relevance (those places in surrounding areas that have Macedonian names, for example). But now, if I look at the map embedded in the infobox on this article, for instance (as well as all others), the map only shows the places in their local main languages. If I open the map on full screen, and then zoom some, I can see the Macedonian names of places, but it used to show them at any zoom level.

Is this some change that has been made, or some error? How do we fix this? Some adjustment on our wiki, or?

Arjunaraoc (talkcontribs)
Reply to "Maps no longer displaying in local wiki language"
Fokebox (talkcontribs)

Hello all! I have installed the extension, but when I try to use it at wiki page I see empty block with the map. Why does it happen?

Fokebox (talkcontribs)

Do I understand correct that there is no opportunity to use mediawiki maps on my wiki?

Mdyug (talkcontribs)

Hi,
Add 2 lines to the LocalSettings.php:

$wgKartographerMapServer = 'https://tile.openstreetmap.fr';
$wgKartographerDfltStyle = 'osmfr';
and clear cash your browser and try again.
I saw this there in Help section below.
Only I haven't figured out yet how to set the values so that Russia is displayed by default ?Can someone please tell me?

Reply to "No map displayed"
Doc James (talkcontribs)

Is it possible to add contours?

TheDJ (talkcontribs)

You mean contour (altitude) lines ? As a separate map style to use, or just additionally mixed in with the current style? Or as an overlay ? And where would this be used exactly, are there examples ?

lots of things are possible in theory, but i think the team is almost winding down again on maps work, so...

maybe @Pnorman can point us to the documentation how to create layer style etc, so that maybe a volunteer would be able to create one.

Doc James (talkcontribs)
Abbe98 (talkcontribs)

Because OpenStreetMap does not include topography we would need to add a new data source. Usually when one needs world wide topography data one needs to merge many sources therefor I guess it's would require quite a lot of work.

Doc James (talkcontribs)

Openstreet maps have a topography layer. It is called "Cycle map"

James

Pnorman (talkcontribs)

task T153395 is about adding hillshading, which would cover contour lines. It's unlikely to be taken up in the near or medium term, as it's outside the scope of the collaboration work going on right now. It's also unlikely to be done after that because there won't be the resources to add it.

OpenStreetMap doesn't have contour lines. The map layers on osm.org are example renderings, and OpenCycleMap includes height data from other sources.

Doc James (talkcontribs)

Okay the contours are much more useful than the hill shading. This was just an idea. Yes height data is what is needed. Not sure the license or were OpenCycleMap gets their data.

James

Denelson83 (talkcontribs)

Why not just add OpenTopoMap support?

TheDJ (talkcontribs)

Thats an external service that wouldn't be able to handle our levels of traffic, would likely violate our privacy policy etc. So instead we would have to convert the style to our own render pipeline and unfortunately WMF doesn't fund development for maps right now.

But if you can find a volunteer to set it up within the WMF infra, then perhaps.

Doc James (talkcontribs)

WikiVoyage gives folks the option to see contours if they want. First time once does this it is associated with a notice that a third party is being used and your data may be share. You can of course decline if you wish and contours will not appear. Here is an example https://en.wikivoyage.org/wiki/Banff#Get_in

Reply to "Topography"
Jdoggs91 (talkcontribs)

I noticed that the extension includes prunecluster but I'm not sure how to use it on a wiki. Can it be turned on using a mapframe or only through js?

TheDJ (talkcontribs)

it's automatically used by Wikivoyage. There is a Wikivoyage mode in the configuration that you then need to enable and that then looks for MediaWiki:Kartographer.js which has to contain a defined url in nearbyArticlesCfg, which returns points of interest in a very specific manner. It's a bit of a hodge podge honestly

Reply to "Clusters"

Observation regarding Refresh of OSM data visible at higher zoom levels

1
Arjunaraoc (talkcontribs)

I noticed that refresh of OSM data visible at higher zoom levels (corresponding to map scale unit of 500 metres or less) could take upto 10 days.

Reply to "Observation regarding Refresh of OSM data visible at higher zoom levels"