I am using Here map for my website and i need height of the Map more than width. In order to do so, when I give height more than width, Map left white space at the top.
.MapNode.before768{position:absolute;height:auto;display:inline-block;vertical-align:top;}
Then this is the class where I initialize map.
.MapNode .movable_map{height:1150px;}
My Js
function loadHeremap(element){
//api key registration
var pixelRatio = window.devicePixelRatio || 1;
var defaultLayers = platform.createDefaultLayers({
tileSize: pixelRatio === 1 ? 256 : 512,
ppi: pixelRatio === 1 ? undefined : 320
});
var map = new H.Map(document.getElementById(element),
defaultLayers.normal.map,{
center: {lat: city_latitude, lng: city_longitude},
zoom: 7,
pixelRatio: pixelRatio
});
}
Lot of other things are happening inside the function but I think this is the key element for my issue.