You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Continuing the work from issue #235 and pr #1129 expanding the support for maps to include multiple markers, and to calculate its own center based on multiple marker points.
Why do we need this?
We want to be able to show all devices on a map on the application overview page.
What is already there? What do you see now?
An array of markers are feed to the map component as a prop and a functions 'getMapCenter' is run based if the marker array length is >= 1. Currently this function just return the first marker location.
What is missing? What do you want to see?
'getMapCenter' should return the center latitude, longitude and an appropriate zoom level for the map that includes all the marker points.
Environment
console
How do you propose to implement this?
Update React component function.
Can you do this yourself and submit a Pull Request?
yes
The text was updated successfully, but these errors were encountered:
Summary
Continuing the work from issue #235 and pr #1129 expanding the support for maps to include multiple markers, and to calculate its own center based on multiple marker points.
Why do we need this?
We want to be able to show all devices on a map on the application overview page.
What is already there? What do you see now?
An array of markers are feed to the map component as a prop and a functions 'getMapCenter' is run based if the marker array length is >= 1. Currently this function just return the first marker location.
What is missing? What do you want to see?
'getMapCenter' should return the center latitude, longitude and an appropriate zoom level for the map that includes all the marker points.
Environment
console
How do you propose to implement this?
Update React component function.
Can you do this yourself and submit a Pull Request?
yes
The text was updated successfully, but these errors were encountered: