diff --git a/swad_centre.c b/swad_centre.c
index 459636617..09ce18974 100644
--- a/swad_centre.c
+++ b/swad_centre.c
@@ -321,7 +321,8 @@ static void Ctr_Configuration (bool PrintView)
Ctr_ConfigTitle (PutLink);
/***** Centre map *****/
- Ctr_ConfigMap ();
+ if (Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM)
+ Ctr_ConfigMap ();
/***** Centre photo *****/
Ctr_ConfigPhoto (PrintView,PutLink);
@@ -447,6 +448,7 @@ static void Ctr_ConfigTitle (bool PutLink)
static void Ctr_ConfigMap (void)
{
+ /* https://leafletjs.com/examples/quick-start/ */
/***** Leaflet CSS *****/
HTM_Txt ("OpenStreetMap contributors, CC-BY-SA, Imagery © Mapbox',"
"maxZoom: 20,"
"id: 'mapbox/streets-v11',"
"accessToken: 'pk.eyJ1IjoiYWNhbmFzIiwiYSI6ImNrNGFoNXFxOTAzdHozcnA4d3Y0M3BwOGkifQ.uSg754Lv2iZEJg0W2pjiOQ'"
- "}).addTo(mymap);");
+ "}).addTo(mymap);\n");
+
+ /* Marker */
+ HTM_Txt ("\tvar marker = L.marker([37.19704, -3.62451]).addTo(mymap);");
+
+ HTM_TxtF ("\tmarker.bindPopup(\"%s
%s\").openPopup();",
+ Gbl.Hierarchy.Ctr.ShrtName,
+ Gbl.Hierarchy.Ins.ShrtName);
HTM_SCRIPT_End ();
}
diff --git a/swad_changelog.h b/swad_changelog.h
index 06799dcd6..146ce47a4 100644
--- a/swad_changelog.h
+++ b/swad_changelog.h
@@ -490,13 +490,14 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
En OpenSWAD:
ps2pdf source.ps destination.pdf
*/
-#define Log_PLATFORM_VERSION "SWAD 19.95 (2019-12-17)"
+#define Log_PLATFORM_VERSION "SWAD 19.95.1 (2019-12-18)"
#define CSS_FILE "swad19.95.css"
#define JS_FILE "swad19.91.1.js"
/*
// TODO: Hacer un nuevo rol en los TFG: tutor externo (profesor de áreas no vinculadas con el centro, profesionales de empresas, etc.)
// TODO: Impedir la creación y edición de proyectos si no son editables.
+ Version 19.95.1: Dec 18, 2019 Map marker in centre information. (249331 lines)
Version 19.95: Dec 17, 2019 Trying Leaflet (open-source JavaScript library for mobile-friendly interactive maps). (249323 lines)
Version 19.94.3: Dec 17, 2019 Code refactoring in centre information. (249282 lines)
Version 19.94.2: Dec 17, 2019 Code refactoring in centre information. (249178 lines)