Hi,
If the field osm
is the top field, you need to use the helper function rwmb_meta()
.
echo rwmb_meta( 'osm_map', $args );
If the field osm
is a subfield in a group, you need to get the group value first.
$group_value = rwmb_meta( 'group_id' );
$args = array(
'width' => '640px',
'height' => '480px',
'js_options' => array(
'doubleClickZoom' => false,
'scrollWheelZoom' => false,
)
);
echo RWMB_Map_Field::render_map( $group_value['osm_map'] );
Please read more on the documentation https://docs.metabox.io/fields/osm/#template-usage