Destination Map

Destination Map
Destination Map

About Destination Map

Destination Map shows one place on a map. When it scrolls into view, the map zooms from the whole world to the place, then a plane flies in from where your guests start. Built for tour companies, hotels, guides and any travel site that says "you will be here".

What you get:

- A world map built in. Nothing to upload, nothing to license: it is drawn from Natural Earth, which is public domain. No API key.

- Type a place and its latitude and longitude. Add a starting place and a plane flies in, facing the way it travels. Flights across the 180th meridian (Los Angeles to Tokyo, Honolulu to Fiji) take the short way.

- Starts when the map scrolls into view, pauses when it leaves, and a Replay button plays it again.

- Zooms until both places fit, so a short hop and a long-haul flight both look right.

- Smooth: the map is drawn on a canvas that paints only what is on screen, and the clock runs outside React. Three maps zooming at once held 53 frames per second on a mid-range laptop, 60 while the planes flew.

- Labels pick a free side on their own: they stay clear of the pin, the route, the Replay button and the edges, even at phone width.

- Vietnam's Hoàng Sa (Paracel) and Trường Sa (Spratly) islands are drawn, with their names once you zoom in.

- A round photo inside the pin, a 44px Replay button, focus ring and keyboard support.

- Reduced motion: visitors who ask for less motion see the finished map with the plane on its route, and nothing moves.

- Own map picture? Switch Map to Image, then give places as X and Y in % of the picture.

- Font: System (the visitor's own font) by default, or Custom to pick one. Water, land, borders, flight, pin and label colors are controls, and any CSS color works.

- Works on any size frame. Put several on one page; each runs on its own.

One destination and one starting point per map. For a trip with several stops, put one map per stop.

From Page Nguyen

Route Map

Related Components

Store's Locator Map
Pinpoint Map
OrbitDot Globe
Geo Office Location