MapZoom

Version: - integer  

Summary

Returns the zoom level which defines the resolution of the map.

Settings

The value is based on the Zoom level​ field in the paragraph module settings.

(Page - Paragraph - Module - Map settings - Zoom level​)

Remarks

The Zoom level can be set between 0 (the lowest zoom level, in which the entire world can be seen on one map) and 19 (down to streets and individual buildings).

Examples

Outputting the template tag

@GetInteger("MapZoom")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("MapZoom"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("MapZoom"); }

Outputting the template tag

<!--@MapZoom-->

Check if integer has a value

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