high-DPI support
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- json
- Área
- documentation
Línea de trabajo
Revisa la especificación existente de TileJSON y las adiciones propuestas en el issue, dpis y {r}, y examina después cómo debería gestionarse la compatibilidad con versiones anteriores para los consumidores existentes. Se considera terminado cuando se hayan documentado una representación acordada para high-DPI y el comportamiento de las plantillas de URL, sin dejar sin resolver la cuestión de la compatibilidad.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
TileJSON should have a means of:
- indicating when a source supports high-DPI versions of base tiles, and at what DPI multipliers (
@2x,@4x, etc) - specifying how URLs for high-DPI tiles are constructed
Without such a specification, consumers must have hard-coded knowledge of a source's support for high-DPI tiles and typically resort to string munging to generate the appropriate URLs. These are exactly the sort of deficiencies that TileJSON is designed to eliminate.
One approach would be to have an array-valued property that lists supported DPI multipliers and a new interpolation key for tile URL templates. E.g.:
{
...
"dpis": [1, 2, 4],
"tiles": ["http://example.com/{z}/{x}/{y}{r}.png"]
}
Where it is specified that {r} is replaced with the pixel ratio ⇢ string mapping of 1 ⇢ "", 2 ⇢ "@2x", 4 ⇢ "@4x", and consumers may decide which of the pixel ratio options to use based on device characteristics. Alternatively this mapping could be explicitly supplied:
{
...
"dpis": {
"1": "",
"2": "@2x",
"4": "@4x"
},
"tiles": ["http://example.com/{z}/{x}/{y}{r}.png"]
}
These approaches introduce a backward compatibility issue however, in that existing TileJSON consumers will not be prepared to interpolate a new template value and thus cannot consume TileJSON that uses it.
cc @yhahn @mourner @tmcw
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 298
- Forks
- 51
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de mapbox/tilejson-spec
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
mapbox/tilejson-spec#74 ·
-
Tile Pack BatchesAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
mapbox/tilejson-spec#71 · 1 comentario ·
-
The spec references "format" field without declaring itQuizá libre de nuevo @mapsam la tomó hace 971 días y no hay ningún pull request abierto. Abierto
mapbox/tilejson-spec#69 · 2 reacciones · 1 asignado ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
mapbox/tilejson-spec#67 · 1 comentario ·
-
Support date in the spec?Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
mapbox/tilejson-spec#65 ·
Todos los issues de mapbox/tilejson-spec
Issues similares
-
README.zh-CN/ja/es still hard-code 501 test counts after README.md went count-freePosiblemente ocupada @Aaqibhafeezkhan la tomó hoy. Abiertobeginner documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
BistaDinesh03/critique#164 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Lychee link check failedAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
-
bug priority: P3 ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
shep-pm/shep-kelpie#1332 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Link Checker ReportAbiertoautomated issue report
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día