
com.liferay.journal.web.portlet.template.dependencies.geolocation.ftl Maven / Gradle / Ivy
<#include "init.ftl">
<#if language == "ftl">
${r"<#assign"} latitude = 0>
${r"<#assign"} longitude = 0>
${r"<#if"} (${variableName} != "")>
${r"<#assign"} geolocationJSONObject = jsonFactoryUtil.createJSONObject(${variableName})>
${r"<#assign"} latitude = geolocationJSONObject.getDouble("latitude")>
${r"<#assign"} longitude = geolocationJSONObject.getDouble("longitude")>
${r"<@liferay_map"}["map-display"]
geolocation=true
latitude=latitude
longitude=longitude
name="${name}"
/>
${r"#if>"}
<#else>
${getVariableReferenceCode(variableName)}
#if>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy