From 6e682889c711df859732d38ad10ce57c22d666ee Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Fri, 14 Jun 2019 06:17:41 +0000 Subject: [PATCH] Add bing maps support to job order. #221 --- templates/job-order/bingmaps.js.twig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/job-order/bingmaps.js.twig b/templates/job-order/bingmaps.js.twig index 7f6c927e..7c191cd3 100644 --- a/templates/job-order/bingmaps.js.twig +++ b/templates/job-order/bingmaps.js.twig @@ -34,11 +34,6 @@ $(function() { } map.setCenter(lat, lng); - map.addMarker({ - lat: lat, - lng: lng, - icon: '/assets/images/icon-destination.png' - }); // set value in hidden input $('#map_lat').val(lat); @@ -135,6 +130,11 @@ $(function() { ); {% for hub in hubs %} + var hub_dest = new Microsoft.Maps.Location({{ hub.hub.getCoordinates.getLatitude }}, + {{ hub.hub.getCoordinates.getLongitude }}); + hmap.entities.push(new Microsoft.Maps.Pushpin(hub_dest, { + }) + ); hmap.addMarker({ lat: {{ hub.hub.getCoordinates.getLatitude }}, lng: {{ hub.hub.getCoordinates.getLongitude }},