Question

I'm trying to modify JavaScript (jQuery, Google Maps v.3) to get the size of #mao_canvas only 80% of the screen height, but I can't undestand what to modify in tihs function. Can anyone help me with this? The basic idea is to get 80% height of #map_canvas.

$(function(){
  $("#map_canvas").css("height",$(window).height() + 'px');
  initialize();
});
Was it helpful?

Solution

is this what you mean? $(function(){ $("#map_canvas").css("height",($(window).height()*80/100) + 'px'); initialize(); });

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top