publiclab / leaflet-blurred-location-display

A library to display points which have been "blurred" for privacy with leaflet-blurred-location
https://publiclab.github.io/leaflet-blurred-location-display/examples/index.html
GNU General Public License v3.0
11 stars 12 forks source link

Ability to toggle between "markers" and "shaded regions" to display locations #10

Open jywarren opened 6 years ago

jywarren commented 6 years ago

When showing "shaded regions" clicking in a shaded region could pop up a list of the points within that region?

Perhaps as a break-out, shaded regions could be darker if there are more points within?

mridulnagpal commented 6 years ago

@jywarren Like a pop-up right? For getting list of all points in that region.

mridulnagpal commented 6 years ago

@publiclab/soc @jywarren How do I get all points between 4 lat,lng points using the API, or till what radius are the points fetched from the center lat,lng?

jywarren commented 6 years ago

Maybe this is a question for @milaaraujo @stefannibrasil ? I think we can search for people and nodes in a bounding box in the API... or maybe we need to add this?

stefannibrasil commented 6 years ago

hi, everyone!

we would need to add that, right now it is only getting the nodes near the given coordinates (lat and lon points):

I am not really sure how the radius is calculated there :thinking:

https://github.com/publiclab/plots2/blob/5574837fa2ada7f253d401d65469fa7ec39566fb/app/services/search_service.rb#L130-L142

stefannibrasil commented 6 years ago

I am not sure why the code snippet isn't working, but there you can see that it only show the nearby nodes given a pair of coordinates... all of this to say that we can work on that in the next weeks!

mridulnagpal commented 6 years ago

@stefannibrasil @jywarren Sounds good as soon as the radius is known we can work on getting all the nodes inside a box.

jywarren commented 6 years ago

OK, great! I also made a gh-pages at https://publiclab.github.io/leaflet-blurred-location-display/examples/index.html although it may take a little while to show up

jywarren commented 6 years ago

There we go!

jywarren commented 6 years ago

https://publiclab.github.io/leaflet-blurred-location-display/examples/index.html

mridulnagpal commented 6 years ago

@jywarren Is the API done?

jywarren commented 6 years ago

No, but just as you've added example locations, you can add ones that specify precision, and develop this display around the example data, don't you think?

On Fri, Aug 3, 2018 at 7:25 AM Mridul Nagpal notifications@github.com wrote:

@jywarren https://github.com/jywarren Is the API done?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/leaflet-blurred-location-display/issues/10#issuecomment-410224982, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ_GBeyCA-b_tiR4EC0WzrEWBQwf0ks5uNDL3gaJpZM4VUkJy .

mridulnagpal commented 6 years ago

@jywarren Got it, working on it!

jywarren commented 5 years ago

Breaking out an issue to develop ways to show multiple data points that have been blurred as a kind of "heat map" or chloropleth?

https://deutchland.maps.luftdaten.info/#4/35.03/5.40 does this in Leaflet, although with a hex grid...

screen shot 2018-11-27 at 3 45 15 pm

There are for sure Leaflet chloropleth map plugins out there!

sagarpreet-chadha commented 5 years ago

This is really cool 😄 . Will start work on this tomorrow 👍 !