Help talk:Extension:Kartographer/OSM

About this board

geopoint support for nodes and ways

1
Jluttine (talkcontribs)

Any information when geopoint support for OSM nodes is coming? I'd like to mark OSM nodes that have wikidata ID specified. Currently, the coordinates must be specified in wikidata.


In addition, it'd be superb if geopoint markers could be used for ways too. For instance, buildings can be mapped with ways instead of nodes in OSM. But one might want to mark them with symbols in mapframe. It shouldn't matter whether the object in OSM is a way or a node. For instance, the White House https://www.openstreetmap.org/way/238241022 is mapped as a way but one might want to mark it with town-hall icon in a map. An implementation idea: The coordinates of the marker could be the center of the smallest rectangle that encapsulates all the nodes in the way. That is, the coordinates are the mean of the minimum and maximum of the latitudes and longitudes. This should be simple and work decently enough.

Reply to "geopoint support for nodes and ways"

No outline around map object

3
Maqdisi (talkcontribs)
Daniel Maak (talkcontribs)

Were you able to solve the problem?

Maqdisi (talkcontribs)

Yes, it seems I just had to wait for the map to regenerate with the latest data from OSM. Or a border can be added either via the mapframe: `stroke-width=3` or by creating a map like so: commons.wikimedia.org/wiki/Data:Addo_Elephant_National_Park.map and manually adding a border.

Reply to "No outline around map object"

How to exclude water boarders

1
Daniel Maak (talkcontribs)
Reply to "How to exclude water boarders"

New OSM relation can't be plotted in mapframe

2
Atomsmith (talkcontribs)

Hi, I am trying to plot OSM relation 11046166 (Tall Pines State Preserve; Q24259875) as shown in my sandbox using mapframe:

<mapframe text="Tall Pines State Preserve" width="300" height="300" latitude="39.7817295" longitude="-75.1420652" zoom="15"> { "type": "ExternalData", "service": "geoshape", "ids": "Q24259875", "properties": {"title": "Tall Pines State Preserve", "description": "", "stroke": "#125123", "stroke-width": 3, "fill": "#ff0000"  } } </mapframe>

I'm expecting a red polygon, but I get only the green area from the OSM base map. The OSM relation is "type=boundary" referencing a single way as "outer". I last adjusted the relation over two days ago, but still nothing.

For comparison, my sandbox also shows OSM relation 8515545 (Abram S. Hewitt State Forest). This is also a "type=boundary" relation. It shows a red polygon as I would expect. Interestingly, the polygon doesn't reflect a major edit someone else made on OSM 21 days ago.

Is it possible that the data exchange between OSM and Wikipedia has broken down? If this issue needs to be reported somewhere else, please let me know where.

Atomsmith (talkcontribs)
Reply to "New OSM relation can't be plotted in mapframe"
Juan Villalobos (talkcontribs)

Hello,

https://www.openstreetmap.org/relation/38757 shows the route named anillo verde ciclista in Madrid, and also his wikidata number Q24036428

In my page [[:es:Usuario:Juan Villalobos/wb/003]] I try to show the route with

<mapframe text="Anillo verde ciclista" width="500" height="350" zoom=11 latitude="40.44" longitude="-3.7034"> {   "type": "ExternalData",   "service": "geoshape",   "ids": "Q24036428",   "properties": {     "title": "Anillo verde ciclista",     "stroke": "#ffb100",     "stroke-width": 6   } } </mapframe>

But it doesn't work. Can anyone tell me why? thanx, --Juan Villalobos (talk) 12:22, 15 October 2018 (UTC)

Juan Villalobos (talkcontribs)

OK, solved. The correct parameter is service="geoline" . "geoshape" was wrong. thanx anyway. --Juan Villalobos (talk) 13:06, 15 October 2018 (UTC)

Reply to "mapframe + osm"

Unable to display OSM feature

3
Summary by Samwilson

Relations for streets must have type=route.

Samwilson (talkcontribs)

Is there something wrong with how we've done it on wikipedia:Avon Terrace, York in order to display OSM relation 8378127? We have:

{{maplink |type=line |frame=yes |plain=yes |frame-align=center |frame-lat=-31.888526 |frame-long=116.768437 |zoom=13 |id=Q28225083}}

The data has been linked in both OSM and Wikidata for a few days.

Evad37 (talkcontribs)

This is phab:T156433: the type has to be "multipolygon", "route", or "boundary" for it to be displayed, while that relation has type "street". (Changed now on OSM, so it should show up on wikipedia tomorrow). See User:Evad37/sandbox/mapframe for more examples.

Samwilson (talkcontribs)

Ah that makes sense! Thanks for fixing. Sorry I didn't read the docs here thoroughly enough! :)

There are no older topics