3D view

Show the neighbourhood in volume: a tilted camera, buildings extruded to their real height, trees on parks and gardens, points of interest standing on poles, the property’s own building in your accent colour, and a sunlight simulation that casts the real shadows of the neighbourhood for any month and hour.

What it does

The 3D view is a rendering mode of the same map. Nothing changes in your integration except three options: the points of interest, travel times, isochrones, favourite addresses and search modules all keep working, in 2D and in 3D.

Yatmo map in 3D: extruded buildings, trees, points of interest on poles and the property's building highlighted

Live demo

Paris, Notre-Dame. Drag to pan, scroll to zoom, click a point of interest. The button in the top-right corner switches back to 2D; the sun button under it opens the sunlight panel.

Sunlight and shadows

With view3dSun: true a sun button joins the map controls. It opens a panel at the bottom of the map: a month, an hour slider that runs from sunrise to sunset at the property, and East / South / West marks (East / North / West in the southern hemisphere). The map then shows the neighbourhood under that sun: lit and shaded facades, the shadow of every building and tree on the streets, on the lower roofs and on the property itself. The visitor sees whether the garden gets the evening sun in June, or whether the tower across the street shades the flat all afternoon in December.

Yatmo map in 3D with the sunlight panel open: June evening in Paris, long shadows cast by the buildings on the streets and the river

From your own code, once the map is loaded: YatmoMapSetSun(true) opens the simulation, YatmoMapSetSun(false) closes it.

How to enable

All three options are off by default, so existing maps are unchanged. Add them to your yatmoConfig:

yatmoConfig = {
    licenseKey: '...',
    language: 'EN',
    country: 'FR',
    container: 'map',
    center: [2.3499, 48.8530],
    zoom: 17,
    view3dButton: true,    // 3D / 2D toggle in the map controls
    view3dDefault: true,   // open the map in 3D
    view3dSun: true        // sun button and sunlight panel
};

The useful combinations:

Name In Type Description
view3dButton: true 2D first The map opens as usual; the visitor can switch to 3D and back.
view3dDefault: true, view3dButton: true 3D first The map opens in 3D; the visitor can go back to the flat map. The recommended setting for listing pages.
view3dDefault: true 3D only The map opens in 3D and stays there.
view3dDefault: true, view3dButton: true, view3dSun: true 3D with sunlight The full set: 3D first, back to 2D possible, and the sunlight simulation. Worth it wherever orientation matters: houses, gardens, terraces, top floors.

You can also switch from your own code: YatmoMapSetView3d(true) or YatmoMapSetView3d(false), once the map is loaded, and open or close the sunlight simulation with YatmoMapSetSun(true) / YatmoMapSetSun(false).

Parameters

Name In Type Description
view3dButton config boolean Show the 3D / 2D toggle button, above the zoom buttons. Default: false.
view3dDefault config boolean Open the map in 3D. The camera tilt is fixed at 55°; bearing is honoured. Default: false.
view3dHighlight config boolean Draw the building under center in the accent colour. Set false when the address is approximate or deliberately blurred, otherwise a random building gets the colour. Default: true.
view3dSun config boolean Show the sun button and the sunlight simulation panel (month, hour): real light and cast shadows on the 3D view. Works with or without view3dButton; on the flat map the button switches to 3D first. Default: false.
view3dSunDefault config boolean Open the sunlight panel as soon as the map is loaded, with view3dSun. Meant for demonstration pages; on a listing page let the visitor press the button. Default: false.

Iframe plugin

The iframe plugin takes the same options as query parameters, view3dButton=1, view3dDefault=1, view3dSun=1 and view3dSunDefault=1. With marker=circle no building is highlighted, since the circle is there to hide the exact address.

<iframe
    width="100%"
    height="560"
    src="https://map.yatmo.com/plugin.html?licenseKey=YOUR_KEY&country=FR&language=EN&latitude=48.8530&longitude=2.3499&mode=map&zoom=17&view3dDefault=1&view3dButton=1&view3dSun=1"
    frameborder="0"
    allowfullscreen
    loading="lazy">
</iframe>

Things to know

Your own pin
The marker you add in LoadMap is unchanged in 3D: a standard Mapbox GL marker is anchored at its point, so it already stands on the ground like a pin.