inventaire / inventaire-client

webapp coupled to the inventaire server :books:
https://inventaire.io
48 stars 16 forks source link

allow to search a location by name #441

Closed maxlath closed 7 months ago

maxlath commented 10 months ago

Addressing #54 with @antalAkos's help. This has been so long in the waiting, so excited to finally get there! :joy: :tada: It should help #295 and more generally having an easy to navigate public map.

TODO post-deploy:

maxlath commented 6 months ago

placeholder coordinates where removed will the following data transform function, applied to both users and groups:

// drop_placeholder_position.mjs
export default function (doc) {
  const { position } = doc
  // Take into account the different number of decimal used since this placeholder was introduced
  if (position[0].toString().startsWith('46.2324') && position[1].toString().startsWith('6.045')) {
    delete doc.position
  }
  return doc
}