By signing up, you agree to the Code of Conduct, which applies to all online and in-person spaces managed by the Public Lab community and non-profit. You also agree to our Privacy Policy.

As an open source community, we believe in open licensing of content so that other members of the community can leverage your work legally -- with attribution, of course. By joining the Public Lab site, you agree to release the content you post here under a Creative Commons Attribution Sharealike license, and the hardware designs you post under the CERN Open Hardware License 1.1 (full text). This has the added benefit that others must share their improvements in turn with you.

Language: Javascript

Working demo:

Project Description

This project is an extension of last year's GSoC project. In this summer I have added various new functionalities to the existing leaflet-blurred-location library and created another library to display locations saved by leaflet-blurred-location in a tricky way so that no information is leaked without the user's permission. This project involved refactoring of the existing code and adding CodeClimate to the repository as well. New UI tools were also added to leaflet-blurred-location along with resolving some previous bugs as well.

For leaflet-blurred-location-display, almost the whole repository was set up and integrated with leaflet-blurred-location to provide a demo. The demo for leaflet-blurred-location-display is live with all the features of leaflet-blurred-location as well.

API

Used to get the locations fit to display according to given map parameters.

blurredLocationDisplay.getBlurredLocations() //This would return the list of all locations fit to display

showPopUp()

Used to show a pop up for all the locations fit to be displayed. The pop up text will be mentioned in the input itself

blurredLocationDisplay.showPopUp() //This would show pop ups of all locations fit to display

Features

Feature

Use

'Blurred' location display

Your exact location won't be posted, only the grid square it falls within will be shown till the level of precision you have set to your location.

'Blurred' human-readable location display

The name of the location you added will be displayed till the level of precision you set as the extent of address depends on the precision level you currently are on. For instance for precision 0 only the country name will be provided as you zoom in precision will increase and so will the address details, such as state, city, etc.