diff --git a/webapp/WEB-INF/templates/admin/plugins/forms/entries/readonly_entry_type_cartography.html b/webapp/WEB-INF/templates/admin/plugins/forms/entries/readonly_entry_type_cartography.html index 23fce470b..6a36cb447 100644 --- a/webapp/WEB-INF/templates/admin/plugins/forms/entries/readonly_entry_type_cartography.html +++ b/webapp/WEB-INF/templates/admin/plugins/forms/entries/readonly_entry_type_cartography.html @@ -1,47 +1,72 @@ + + + + + + + + + <@row> <@columns sm=3><@p class='text-right font-weight-bold'>${entry.title!''} <@columns sm=9> <@p> - <#assign coordinate = "" > - <#assign datalayer = "" > - <#if getResponseContainingTheFieldWithCode( list_responses, "coordinates_geojson" )?? > - <#assign coordinate = getResponseContainingTheFieldWithCode( list_responses, "coordinates_geojson" ).toStringValueResponse > - - <#if getResponseContainingTheFieldWithCode( list_responses, "DataLayer" )?? > - <#assign datalayer = getResponseContainingTheFieldWithCode( list_responses, "DataLayer" ).toStringValueResponse > - + <#assign coordinateResponse = getResponseContainingTheFieldWithCode(list_responses, "coordinates_geojson")!> + <#assign coordinate = coordinateResponse?has_content?then(coordinateResponse.toStringValueResponse, "")> - <#include "/skin/plugins/carto/manage_map.html" /> + <@div class='position-relative'> + <@div id='single-point-map' params='style="height: 400px; width: 100%"'> + - \ No newline at end of file + + mapsPlaceholder.push(singlePointMap); +})(); +