MapCenterLng

Version: - double  

Summary

Returns the longitude in the coordinates that defines the center of the map.

Settings

The value is based on the Map center field in the paragraph module settings.

(Page - Paragraph - Module - Map settings - Map center - Lng)

Examples

Outputting the template tag

@GetDouble("MapCenterLng")

Check if tag has a value

@if(!double.IsNullOrWhiteSpace(GetDouble("MapCenterLng"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ double storedTag = GetDouble("MapCenterLng"); }

Outputting the template tag

<!--@MapCenterLng-->

Check if double has a value

<!--@If Defined(@MapCenterLng)--> Let's output this tag here: <strong><!--@MapCenterLng--></strong> <!--@EndIf(@MapCenterLng)-->