[GIS] Tilt of OpenStreetMap with LeafletJs

google mapsleafletopenstreetmap

I am using LeafletJs as mapping library for OpenStreetMaps. Is there any method map.Tilt() in Leaflet api like google provides

map = new google.maps.Map(document.getElementById('map-canvas'), {
    zoom: 18,
    center: new google.maps.LatLng(35.8313284, -82.7251666),
    mapTypeId: google.maps.MapTypeId.SATELLITE,
    heading: 90,
    tilt: 30
});

I need not SATELLITE view. Recently i am viewing markers like this. I need to show in 20/30 degree angled the map.
enter image description here

Best Answer

There is no builtin functionality for this in Leaflet, and no plugin to do it that I am aware of either.

You could maybe produce something like it with some CSS transform3d hack, but it would likely look pretty horrible.

In general, I think OpenLayers 3 might be more suited for pseudo-3d functionality. I have not used OpenLayers 3 myself, though.

Related Question