Dynamic map block

Dynamic map is feature of Map block and allows you to attach dynamic values to Map markers. You can attach dynamic values for multiple markers and show them on page.

Your custom field must save location with one of available structures

array['lat'=>'value', 'lng'=>'value']

This kind of structure is available in ACF map field

array['latitude'=>'value', 'longitude'=>'value']

or in multidimensional array

array[
   'location' => array(
       'lat' => 'value',
       'lng' => 'value'
    ),
    'title' => 'value',
    'description' => 'value'
]

title and description will be used for title and description for marker’s popup

Copy this post’s content
Copy code below, and paste it (CTRL+V) in content of page
«
»