<?php
if(empty($this->currentMap)){
	return;
}
?>
<style type="text/css" id="gmpMapStyles_<?php echo $this->currentMap['view_id'];?>">
	#<?php echo $this->currentMap['view_html_id'];?> {
        width: <?php echo $this->htmlOptions['width_full'];?>;
        height: <?php echo $this->htmlOptions['height_full'];?>;
		<?php if(!empty($this->htmlOptions['align'])) {?>
			float: <?php echo $this->htmlOptions['align'];?>;
		<?php }?>
		<?php if(!empty($this->htmlOptions['border'])) {?>
			border: <?php echo $this->htmlOptions['border'];?>;
		<?php }?>
		<?php if(!empty($this->htmlOptions['margin'])) {?>
			margin: <?php echo $this->htmlOptions['margin'];?>;
		<?php }?>
    }
	#gmapControlsNum_<?php echo $this->currentMap['view_id'];?> {
		width:<?php echo $this->htmlOptions['width_units'] === '%' ? '100%' : $this->htmlOptions['width_full'];?>
	}
	.gmpMapDetailsContainer#gmpMapDetailsContainer_<?php echo $this->currentMap['view_id'];?> {
		height:<?php echo $this->htmlOptions['height_full'];?>;
	}
	.gmp_MapPreview#<?php echo $this->currentMap['view_html_id'];?> {
		/*position:absolute;*/
		width: 100%;
	}
	#mapConElem_<?php echo $this->currentMap['view_id'];?>{
		width: <?php echo $this->htmlOptions['width_full'];?>
	}
	<?php if(isset($this->currentMap['params']['infownd_title_color'])) { ?>
		#<?php echo $this->currentMap['view_html_id'];?> .gmpInfoWindowtitle {
			color: <?php echo $this->currentMap['params']['infownd_title_color']?> !important;
			font-size: <?php echo $this->currentMap['params']['infownd_title_size']?>px !important;
		}
	<?php }?>
</style>