- Creazione "AbitareGliIblei"
- Mappa Interattiva con i markers
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user