Add polygon geographies to Budgets' map

Note that in the budgets wizard test we now create district with no
associated geozone, so the text "all city" will appear in the districts
table too, meaning we can't use `within "section", text: "All city" do`
anymore since it would result in an ambiguous match.

Co-Authored-By: Julian Herrero <microweb10@gmail.com>
Co-Authored-By: Javi Martín <javim@elretirao.net>
This commit is contained in:
Matheus Miranda
2018-11-13 17:22:55 -02:00
committed by Javi Martín
parent d1f1e1dfea
commit de13e789dd
33 changed files with 379 additions and 26 deletions

View File

@@ -201,7 +201,9 @@ en:
geozone:
name: Name
external_code: "External code (optional)"
color: "Color (optional)"
census_code: "Census code (optional)"
geojson: "GeoJSON data (optional)"
html_map_coordinates: "HTML <map> Coordinates (optional)"
milestone:
status_id: "Current status (optional)"
@@ -545,6 +547,10 @@ en:
attributes:
max_per_day:
invalid: "You have reached the maximum number of private messages per day"
geozone:
attributes:
geojson:
invalid: "The GeoJSON provided does not follow the correct format. It must follow the \"Polygon\" or \"MultiPolygon\" type format."
image:
attributes:
attachment:

View File

@@ -198,6 +198,7 @@ en:
success_notice: "Heading deleted successfully"
unable_notice: "You cannot delete a Heading that has associated investments"
form:
geozone_info: "When a heading is associated with a geozone, the geozone will appear on this budget's map if the geozone includes GeoJSON data."
max_ballot_lines_info: 'Maximum number of projects a user can vote on this heading during the "Voting projects" phase. Only for budgets using approval voting.'
population_info: "Budget Heading population field is used for Statistic purposes at the end of the Budget to show for each Heading that represents an area with population what percentage voted. The field is optional so you can leave it empty if it doesn't apply."
coordinates_info: "If latitude and longitude are provided, the investments page for this heading will include a map. This map will be centered using those coordinates."
@@ -1391,8 +1392,11 @@ en:
external_code: External code
census_code: Census code
code_help: Response code for this geozone on the census API
coordinates: Coordinates
color_help: "Color of the zone in a budget's map. %{format_help}"
coordinates: Coordinates available
coordinates_help: Coordinates that will generate a clickable area on an HTML image map
geojson: GeoJSON available
geojson_help: "Must follow the \"Polygon\" or \"MultiPolygon\" type format; on a budget's map, a polygon based on this data will appear when a heading is associated to this geozone"
create:
notice: "Geozone created successfully"
edit:

View File

@@ -200,8 +200,10 @@ es:
description: "Descripción"
geozone:
name: Nombre
color: "Color (opcional)"
external_code: "Código externo (opcional)"
census_code: "Código del censo (opcional)"
geojson: "Datos GeoJSON (opcional)"
html_map_coordinates: "Coordenadas HTML <map> (opcional)"
milestone:
status_id: "Estado actual (opcional)"
@@ -545,6 +547,10 @@ es:
attributes:
max_per_day:
invalid: "Has llegado al número máximo de mensajes privados por día"
geozone:
attributes:
geojson:
invalid: "Los datos GeoJSON proporcionados no tienen el formato correcto. Deben tener un tipo del formato \"Polygon\" o \"MultiPolygon\"."
image:
attributes:
attachment:

View File

@@ -198,6 +198,7 @@ es:
success_notice: "Partida presupuestaria eliminada correctamente"
unable_notice: "No se puede eliminar una partida presupuestaria con proyectos asociados"
form:
geozone_info: "Cuando se asocia una partida a una zona, la zona aparecerá en el mapa de este presupuesto si la zona incluye datos de GeoJSON."
max_ballot_lines_info: 'Máximo número de proyectos que un usuario puede votar en esta partida durante la fase "Votación final". Solamente se aplica a presupuestos con votación por aprobación.'
population_info: "El campo población de las partidas presupuestarias se usa con fines estadísticos únicamente, con el objetivo de mostrar el porcentaje de votos habidos en cada partida que represente un área con población. Es un campo opcional, así que puedes dejarlo en blanco si no aplica."
coordinates_info: "Si se añaden los campos latitud y longitud, en la página de proyectos de esta partida aparecerá un mapa, que estará centrado en esas coordenadas."
@@ -1391,8 +1392,11 @@ es:
external_code: Código externo
census_code: Código del censo
code_help: Código de respuesta para esta zona en la API del censo
coordinates: Coordenadas
color_help: "Color con el que aparecerá esta zona en el mapa de un presupuesto. %{format_help}"
coordinates: Coordenadas disponibles
coordinates_help: Coordenadas que generarán una zona clicable en un mapa de imagen HTML
geojson: GeoJSON disponible
geojson_help: "Deben tener un tipo del formato \"Polygon\" o \"MultiPolygon\"; en el mapa de un presupuesto aparecerá un polígono basado en estos datos si una partida se asocia a esta geozona"
create:
notice: "Zona creada correctamente"
edit: