Add bing maps support to job order. #221

This commit is contained in:
Korina Cordero 2019-06-14 06:17:41 +00:00
parent 0cffc525c5
commit 6e682889c7

View file

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