diff --git a/ts-client/client.ts b/ts-client/client.ts index a118efc..12e5d59 100644 --- a/ts-client/client.ts +++ b/ts-client/client.ts @@ -1,5 +1,5 @@ import * as L from 'leaflet-contextmenu'; -import { Feature, FeatureCollection } from 'geojson'; +import { Feature, FeatureCollection, Point } from 'geojson'; interface PlaceModel { id: number | null; @@ -282,6 +282,11 @@ async function setupMap(): Promise { popupStr += "
  • Horario: " + feature.properties.open_hours + "
  • "; if (feature.properties.description) popupStr += "
  • " + feature.properties.description + "
  • "; + + const lnglat = (feature.geometry as Point).coordinates; + popupStr += "GMaps" popupStr += ""; layer.bindPopup(popupStr);