MapCenterLat
Version: - doubleSummary
Returns the latitude 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 - Lat)
Examples
Outputting the template tag
@GetDouble("MapCenterLat")
Check if tag has a value
@if(!double.IsNullOrWhiteSpace(GetDouble("MapCenterLat"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
double storedTag = GetDouble("MapCenterLat");
}
Outputting the template tag
<!--@MapCenterLat-->
Check if double has a value
<!--@If Defined(@MapCenterLat)-->
Let's output this tag here: <strong><!--@MapCenterLat--></strong>
<!--@EndIf(@MapCenterLat)-->