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 }},