Based on the documentation the geofire uses the following interface :
export interface GeoFireObj {
'.priority': string;
g: string;
l: number[];
}
I would like to add title and picture to the interface so I can show an info window that displays the title and picture of each place.
I tried to change it but it did not work. my geofire set function is :
update(){
this.geoFire.set({
"some_keymscou", [45.777337, -73.632393],
title: "Golf club",
picture: this.pict
}
).then(function () {
console.log("Provided keys have been added to GeoFire");
}, function (error) {
console.log("Error: " + error);
});
}
is it possible to change the geofire interface without affecting the real time queries