mapbox / mapbox/mapbox-plugins-android

Offline map font download.

Abierto
#1,049 2 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
Java
Estrellas
242
Forks
116
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I am trying to display text on an offline map,

        val textSymbol = SymbolOptions()
                .withLatLng(LatLng(item.latitude, item.longitude))
                .withTextField("TEST")
               .withTextColor(ColorUtils.colorToRgbaString(Color.WHITE))
               .withZIndex(50)
               .withTextFont(arrayOf("Roboto Black"))

this works well when online, but doesn't work at all when offline.

I have added the Font Roboto Black to in the Mapbox Studio. (Fonts -> Upload new font) for my style.
but I don't know if I should also do another action. Like, apply a font to region or zoom levels. (not sure how to do that)

after downloading the offline regions all the maps are displayed correctly but the text doesn't show. (it works well when online)
also, I can't find any downloaded fonts or anything inside the android/data/my.package/ folder or its subfolders.

I am not married to this font and at this point, I would be glad for any font that would display text when in offline mode. tho nothing I put in the .withTextFont() method seems to produce any results.

Regards.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza con SymbolOptions.withTextFont y el flujo de descarga de regiones sin conexión; después, reproduce la diferencia entre el renderizado en línea y sin conexión usando la fuente Roboto Black configurada en Mapbox Studio. Sigue cómo se almacenan y cargan los recursos de mapas sin conexión; el trabajo estará terminado cuando el texto que usa una fuente configurada se renderice después de descargar la región sin conectividad.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
android, kotlin
Área
mobile
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.