get_render_attribute_string( 'style_wrapper' ) ); ?>>
$pin ) {
$key = 'map_marker_' . $index;
$pin_longitude = $pin['map_longitude'];
$pin_latitude = $pin['map_latitude'];
$this->add_render_attribute(
$key,
array(
'class' => array( 'premium-pin', 'elementor-invisible' ),
'data-lng' => $pin_longitude,
'data-lat' => $pin_latitude,
'data-icon' => $pin['pin_icon']['url'],
'data-icon-size' => $pin['pin_icon_size']['size'],
'data-max-width' => $marker_width,
'data-activated' => 'yes' === $pin['open_by_default'],
)
);
if ( ! empty( $pin['custom_id'] ) ) {
$this->add_render_attribute( $key, 'data-id', esc_attr( $pin['custom_id'] ) );
}
$info_key = 'marker_info_' . $index;
$this->add_render_attribute( $info_key, 'class', 'premium-maps-info-container' );
if ( $papro_activated && 'yes' === $pin['advanced_view'] ) {
$this->add_render_attribute(
$info_key,
'class',
array(
'advanced-pin',
'maps-' . $pin['marker_skin'],
)
);
$this->render_advanced_pin_view( $pin, $key, $info_key );
} else {
$this->render_classic_pin_view( $pin, $key );
}
?>