Page MenuHomePhabricator

Host sprites and glyphs in kartotherian for Android WebGL map
Closed, ResolvedPublic

Description

Background Information

As part of an investigation, the Android team decided to move forward with a maplibre implementation of the WMF map, see T324068#8585806 for more details. In order to allow this we need to support glyphs and sprites not yet supported.

What

Support the following endpoints to serve glyphs and sprites:

"sprite": "https://petersongis.github.io/Mobility/wikisprites",
"glyphs": "https://petersongis.github.io/Mobility/fonts/{fontstack}/{range}.pbf",

How

TBD

Acceptance Criteria

  • The Android App can use the maplibre style with all assets hosted in the WMF infrastructure

Event Timeline

Change 922154 had a related patch set uploaded (by MSantos; author: MSantos):

[mediawiki/services/kartotherian@master] add glyphs and sprites to kartotherian

https://gerrit.wikimedia.org/r/922154

Change 929176 had a related patch set uploaded (by MSantos; author: MSantos):

[mediawiki/services/kartotherian@master] add glyphs to kartotherian for webgl

https://gerrit.wikimedia.org/r/929176

Change 922154 merged by jenkins-bot:

[mediawiki/services/kartotherian@master] add sprites to kartotherian

https://gerrit.wikimedia.org/r/922154

Change 929176 merged by jenkins-bot:

[mediawiki/services/kartotherian@master] add glyphs to kartotherian for webgl

https://gerrit.wikimedia.org/r/929176

Can someone double check for license issues and ensure that if there is a license that doesn't match this repo, there is a LICENSE file in the subdir at least ? Or if the license is CC-by-sa or something, add that in the README ? These things tend to get overlooked and then later on it's hard to correct/find back.

@TheDJ thanks for raising that. The only font used is Open Sans which is Apache 2.0. I'll pull the LICENSE text into the repo and add that comment to the README.

The sprites are pulled from osm-bright.tm2 the default style used by WMF maps. Anything that should be noted about that?

Mentioned in SAL (#wikimedia-operations) [2023-08-01T17:09:44Z] <mbsantos@deploy1002> Finished deploy [kartotherian/deploy@ee544cb]: Update kartotherian to e28ea7ef (T334668 T332985 T332664 T329924) (duration: 04m 25s)

https://github.com/kartotherian/osm-bright.tm2/blob/master/LICENSE.txt

Code is BSD, Design of the map is CC-by-3.0, icons are CC0 1.0 (all by both Mapbox and Wikimedia Foundation). I would just copy the icons part of the above license file and put it in a license file that is inside the same directory as the icons.

Change 952833 had a related patch set uploaded (by MSantos; author: MSantos):

[mediawiki/services/kartotherian@master] Add LICENSE for wikisprites

https://gerrit.wikimedia.org/r/952833

Change 952833 merged by jenkins-bot:

[mediawiki/services/kartotherian@master] Add LICENSE for wikisprites

https://gerrit.wikimedia.org/r/952833