Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A option/method to support: valid area feature. #100

Open
dadiorchen opened this issue May 23, 2022 · 0 comments
Open

A option/method to support: valid area feature. #100

dadiorchen opened this issue May 23, 2022 · 0 comments

Comments

@dadiorchen
Copy link
Collaborator

On the web map client, for example, when open this page: http://localhost:3000/planters/940

image

The map area is trying to focus on the given planter, (there is a function in the core to calculate the initial area for this), but, the problem is, as shown in the picture, the map is partially covered by a drawer/panel, so, the map eventually in the end user's eys is not focused perfectly on the current planter.

We need to consider an option or function to make the map core aware of the 'valid' area of the current map, so it would take this in consideration when calculate the initial map view.

For example:

new Map({
  validVisualArea: {top: ?px, left: ?px, bottom: ?px, right: ?px}
})

Here the for properties expresses the rectangle of the area on the current map screen.


Some hints:

  • Please read our readme for more information/guide/tutorial.
  • Here is an engineering book in Greenstand.
  • To know more about our organization, visit our website.
  • If you want to join the slack community (some resources need the community member's permission), please leave your email address.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant