IBM-Cloud / logistics-wizard-webui

Web UI for Logistics Wizard Showcase demo. The Logistics Wizard is an end-to-end, smart supply chain management solution that showcases how to execute hybrid cloud, microservices, and predictive data analytics in the real world.
Other
14 stars 20 forks source link

Automatically adjust the default zoom to the data #113

Closed l2fprod closed 6 years ago

l2fprod commented 7 years ago

Once we have loaded dc/retailers/shipments for the first time, we could automatically adjust the zoom ratio so that all is visible on screen.

Work in MapMarker.jsx shows how to convert between screen to map coordinates. Might be reused to adjust the map bounds.