Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Save map to meter dimensions #19

Open
alexandrevryghem opened this issue Feb 17, 2022 · 0 comments
Open

Save map to meter dimensions #19

alexandrevryghem opened this issue Feb 17, 2022 · 0 comments
Labels
feature New feature or request

Comments

@alexandrevryghem
Copy link
Contributor

The map is now saved based on pixels and when images of floors have different dimensions the floors don't match.

Solution:

  1. (Ask if the user wants to upload image.)
  2. Ask user for width and length of building in meters.
  3. Ask user to draw the lines of the building.
  4. Calculate the bouding box
  5. Change mapWidth & mapHeight based on the new pixel to meter ratio that you can calculate with longest side of bounding box & mapWidth (or mapHeight depending on longest side)
  6. Change the image size
@alexandrevryghem alexandrevryghem added the feature New feature or request label Feb 17, 2022
@alexandrevryghem alexandrevryghem added this to the v1.0 milestone Feb 17, 2022
@alexandrevryghem alexandrevryghem modified the milestones: v1.0, v3.0 Feb 21, 2022
@alexandrevryghem alexandrevryghem removed this from the v3.0 milestone Mar 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant