publiclab / blurred-location

A JavaScript library to help manage variable location privacy through a "blurred location" model
GNU General Public License v3.0
4 stars 1 forks source link

limit zoom level of map ? #3

Closed sagarpreet-chadha closed 5 years ago

sagarpreet-chadha commented 5 years ago

use the module to implement (and document) an option in LBL to limit map input to a precision range, with { max: 14, min: 4 } (i.e. the map would not zoom outside that range nor would coordinates generated fall outside that range of precisions)

@jywarren , more details please ? Do we need the markers array from LBLD to implement this ?

sagarpreet-chadha commented 5 years ago

Kindly confirm this , So this function : 1.) restricts the zoom level range . 2.) takes markers array as input , and make sure that these markers shows only between the zoom level range ?

jywarren commented 5 years ago

Ah, actually this would be part of LBL, as it's a way to restrict the input -- the creation of precision data. So 1) is correct, but 2) would just make it impossible to input a location that has a precision outside the given range. Make sense? Thanks! You could probably transfer this issue over to LBL!

On Thu, Mar 14, 2019 at 2:35 PM Sagarpreet Chadha notifications@github.com wrote:

use the module to implement (and document) an option in LBL to limit map input to a precision range, with { max: 14, min: 4 } (i.e. the map would not zoom outside that range nor would coordinates generated fall outside that range of precisions)

@jywarren https://github.com/jywarren , more details please ? Do we need the markers array from LBLD to implement this ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/blurred-location/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ0wwlUoxWxJ65PpfZ4pRPi4jA3KKks5vWpZTgaJpZM4b08Zq .

sagarpreet-chadha commented 5 years ago

Shifted to https://github.com/publiclab/leaflet-blurred-location/issues/187 !