GithubHelp home page GithubHelp logo

bubastis / ocorrencias-lx-mapa Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.2 MB

Interface to https://naminharualx.cm-lisboa.pt/ using Mapbox GL JS

JavaScript 100.00%
mapbox-gl-js vanilla-javascript netlify-functions

ocorrencias-lx-mapa's Introduction

Netlify Status

Na Minha Rua V2 🇵🇹

O que é?

Este site é um interface construído em javascript para a aplicação Na Minha Rua, operada pela Câmara Municipal de Lisboa, que permite a qualquer cidadão registar problemas no espaço público. Esta versão permite a consulta das ocorrências registadas num interface mais amigável. Utilizando uma Netlify function baseada na node-fetch, a versão V2 vai buscar as últimas 500 ocorrências à API pública e lista-as como pontos num mapa produzido com o Mapbox GL JS que carrega imediatamente. Ao carregar em qualquer marcador, é disponibilizado um popup com detalhes da ocorrência.

Os marcadores de ocorrência estão sincronizados com uma lista de cartões do lado esquerdo, e um filtro no canto superior esquerdo permite filtrar simultaneamente os cartões e os marcadores no mapa, por freguesia ou tipo de ocorrência. No final da listagem de cartões, um botão "Mais ocorrências" carrega o mapa e a lista com as 500 ocorrências seguintes, e assim sucessivamente. Esta versão está pronta para dispositivos móveis, orientando a lista de cartões em banda horizontal para permitir a navegação.

Próximos objectivos

  • Navegação de cartões com teclado
  • Filtro simplificado e integrado no design da aplicação
  • Correcção de precisão na localização do utilizador (Google Chrome)

Websites

O website está alojado no Netlify em:
https://ocorrencias-lx-mapa.netlify.app

Está também em desenvolvimento uma versão que dispõe os registos em data table https://ocorrencias-lx.netlify.app

Na Minha Rua V2 🇬🇧

What is it (English)

This website is a interface built in javascript for the Na Minha Rua [In My Street] portal, which is operated by the Lisbon City Hall and enables citizen reporting of problems within public areas. Using a Netlify function adapted from node-fetch, the V2 version fetches the last 500 reports from the public API and lists them on a map that uses Mapbox GL JS that loads immediately. By clicking on any marker, the user is presented with a popup with details of the report.

The report markers are synced with a cards list on the left sidebar, and a filter on the upper left corner allows for filtering both the cards and the markers, by parrish or type of report. At the end of the cards list, a "Mais ocorrências" [ More occurrences] button loads the map and the list with the next 500 reports. This version is ready for mobile devices, displaying the vertical cards list as a scrollable horizontal band to ease navigation.

Upcoming goals

  • Keyboard navigation for the cards list
  • Simplified filter component, integrated with the application's design
  • Correction to user location accuracy (in Google Chrome)

Websites

This website is hosted by Netlify at: https://ocorrencias-lx-mapa.netlify.app

Also in development: a version that displays the reports as a data table https://ocorrencias-lx.netlify.app

ocorrencias-lx-mapa's People

Contributors

bubastis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.