         ...baseOptions,
               ...(lab.inactive ? inactiveOptions : {}),
               ...(lab.label === 'left' ? labelLeftOptions : {}),
           }});
   };

   var labs = [
       {{- range $labs -}}
   {{- $coords := slice ((printf "%.2f" .Params.lat) | float) ((printf "%.2f" .Params.long) | float ) -}}
   {{- $label := cond (eq .Params.markerposition "right") "right" "left" -}}
   {{- dict "coords" $coords "label" $label "link" .RelPermalink "city" .Params.city "inactive" .Params.inactive | 