The Widget is used to show entities location into openstreetmap with geolocation and geocoding.
To use the map widget you should add this snippet into form view for any model that contain those element.
Do not use group to wrap the div.
<div class="o_field_map_from">
<field name="function" // Char Field Name
nolabel="1"
widget="sol_map_field"
<!-- Set fields Section to be use for geocoding -->
longitude="partner_longitude"
latitude="partner_latitude"
street="street"
postalcode="zip"
state_id="state_id"
country_id="country_id"
city="city"
<!-- END Section-->
geocode_btn="1" <!-- Active the btn geocoding -->
geo_drag_mark="1"> <!-- Active the the option to drag the marker on the map and update coordinate -->
</field>
</div>