Adding markers to map from field in entries within section
Author of Smart Map here...

It sounds like your locations are in a section (a Structure is a type of section). The first line of your solution is exactly what you'd need to get the locations value.

{% set locations = craft.entries.section('locations').limit(null) %}

{{ craft.smartMap.map(locations) }}


Just to clarify...


Are you using the "Address (Smart Map)" field to store your addresses?
And do each of those addresses contain "Latitude" and "Longitude" values?


If so, the code example above should definitely work for you!