[Google Static Maps] Handle styled Maps with the "style" parameter
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
Línea de trabajo
Comienza en StaticMapsRequest.java y sigue custom(String, String) a través de param y paramAddToList para entender cómo se representan los parámetros repetidos. Compara el comportamiento de estilo solicitado para Google Static Maps con la documentación de estilos enlazada; la tarea estará terminada cuando los clientes puedan añadir múltiples parámetros style mediante una API de solicitudes compatible.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I use the Google Static Maps API and I would like to customize the presentation of the Map by applying my own styles.
I found this documentation: https://developers.google.com/maps/documentation/maps-static/styling
Is your feature request related to a problem? Please describe.
But I can't find a method in StaticMapsRequest.java to add styles.
As an alternative, I used StaticMapsRequest.custom(...) method.
req.custom("style", "feature:poi|visibility:off");
But I can't add multiple styles, because the custom method allows to add just one 'style' parameter.
I can't do the following:
StaticMapsRequest req = StaticMapsApi.newRequest(sc.context, new Size(WIDTH, HEIGHT));
req.center("Google Sydney");
req.zoom(16);
req.custom("style", "feature:poi|visibility:off");
req.custom("style", "feature:landscape|visibility:off");
ByteArrayInputStream bais = new ByteArrayInputStream(req.await().imageData);
BufferedImage img = ImageIO.read(bais);
Describe the solution you'd like
I would like to have a method to handle the 'style' parameter.
req.style(
new Style()
.feature(new StyleFeature().poi())
.element(new StyleElement().labels().icon())
.rules(new StyleRules().color(java.awt.Color.WHITE))
);
req.style(
new Style()
.feature(new StyleFeature().landscape().man_made())
.rules(new StyleRules().visbility().off())
);
Describe alternatives you've considered
The custom method allows to add a single string:
public A custom(String parameter, String value) {
return this.param(parameter, value);
}
An alternative would be to add a new custom method that allows a list of Strings:
public A custom(String parameter, List<String> values) {
values.forEach(v -> this.paramAddToList(parameter, v));
return this.getInstance();
}
- Lenguaje dominante
- Java
- Estrellas
- 1.8k
- Forks
- 972
- Merge medio
- 5 h 7 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una 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 googlemaps/google-maps-services-java
-
PlacesApi.placeDetails(context, placeId).await() interface errorPosiblemente ocupada @madtriceps la tomó hace 99 días. Abiertotriage me type: bug
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
-
[email protected]Abiertotriage me type: feature request
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
-
Bagg hacmAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
googlemaps/google-maps-services-java#1059 · 1 reacción ·
-
Issue in java daAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
-
Issue in java daAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
Todos los issues de googlemaps/google-maps-services-java
Issues similares
-
Area-UIUX Issue-Bug Issue-Easy (good first issue)
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
TeamAmaze/AmazeFileManager#4769 ·
Los mantenedores suelen responder en 7 días
-
Expose SManga.memo & SChapter.memo fields in GraphQL APIs to support source-specific client featuresAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Suwayomi/Suwayomi-Server#2551 ·
Los mantenedores suelen responder en 9 días
-
CLI: enforce absolute ADB device paths in file and directory commandsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
weaviate/java-client#631 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días