<?php
return $this->includeTemplate(
    'map_map', 
    $CONTEXT->getAttributes() + [
        'field' => $settings['map']['coordinates_field'] ?? 'location_address',
        'settings' => $settings['map'],
        'draw_options' => $this->Location_DrawMapOptions([], $CONTEXT),
        'display' => isset($settings['display']) && (string)$view === 'map' ? $settings['display'] : null,
    ], 
    '.array'
);