DEV Community

mibii
mibii

Posted on

New Feature Announcement: Enhanced Map Interaction on My "Infometka"!

I am excited to introduce a new feature at "Infometka" interactive map web app that enhances your experience and makes navigation even easier.

You can now enter specific coordinates directly on the map interface.
Instant Navigation: With a simple click, the map will automatically center on the specified coordinates, zooming in to give you a detailed view.

Image description

Here's a sneak peek at how it works:

// Function to handle coordinate input and move the map
const handleMovetoCoord = ({ lat, lng }) => {
  setViewport({
    ...viewport,
    latitude: lat,
    longitude: lng,
    zoom: viewport.zoom + 3 <= 22 ? viewport.zoom + 3 : 22,
    transitionDuration: 1000,
    transitionInterpolator: new FlyToInterpolator()
  });
};
Enter fullscreen mode Exit fullscreen mode

Stay tuned for more updates as we continue to enhance our web app to better serve your needs. Try out the new feature now and experience a more interactive and user-friendly mapping experience!

Happy exploring! 🌍
https://infometka.com/

Top comments (0)