- Creazione "AbitareGliIblei"

- Mappa Interattiva con i markers
This commit is contained in:
Surya Paolo
2024-07-31 15:02:40 +02:00
parent 21862f87a1
commit d527f49c5e
2 changed files with 55 additions and 7 deletions

View File

@@ -89,10 +89,23 @@ const AttivitaSchema = new Schema(
},
descr: {
type: String,
},
},
coordinate_gps: {
type: String,
address: {
type: String,
default: '',
},
type: {
type: String,
enum: ['Point'], // Specifica il tipo, in questo caso solo 'Point'
required: true
},
coordinates: {
type: [Number], // L'array dovrebbe contenere lon e lat
required: true,
index: '2dsphere' // Indice geospaziale [lng, lat]
},
},
email: {
@@ -111,6 +124,7 @@ const AttivitaSchema = new Schema(
type: String,
},
//**ADDFIELD_ATTIVITA
},
...Reaction.getFieldsForReactions()
@@ -341,7 +355,7 @@ AttivitaSchema.statics.getProject = function (proj_add2) {
idSkill: 1,
idCity: 1,
logo: 1,
photos: 1,
photos: 1,
note: 1,
descr: 1,
website: 1,