protected function render()
{
$settings = $this->get_settings();
if (empty($settings['address'])) {
return;
}
if (0 === absint($settings['zoom']['size'])) {
$settings['zoom']['size'] = 10;
}
printf('<div class="elementor-custom-embed"><iframe frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?q=%s&t=m&z=%d&output=embed&iwloc=near"></iframe></div>', urlencode($settings['address']), absint($settings['zoom']['size']));
}