From f6d75fe6d6af3988815cf439e03ece558ef429f0 Mon Sep 17 00:00:00 2001 From: Katerina Date: Wed, 15 Jul 2020 23:30:30 +1000 Subject: [PATCH] small bug fixed --- public/trashure-client.js | 7 +++++-- views/index.ejs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/public/trashure-client.js b/public/trashure-client.js index 169b5aa..9e57861 100644 --- a/public/trashure-client.js +++ b/public/trashure-client.js @@ -146,7 +146,7 @@ function getMap() { userLocation.latitude, userLocation.longitude ), - zoom: 10, + zoom: 12, }); var center = map.getCenter(); @@ -177,9 +177,12 @@ function getMap() { var location = { latitude: data.lat, longitude: data.long }; pin = new Microsoft.Maps.Pushpin(location, { title: data.name, - text: `${data.id}`, + // text: `${data.id}`, icon: 'rd-pin.png', }); + pin.metadata = { + id: data.id, + }; map.entities.push(pin); // Handles the click event of a pin, note changes textContent of Div to display it diff --git a/views/index.ejs b/views/index.ejs index 0d295e9..5fe7714 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -6,7 +6,7 @@ Document