From 5bdc1a7f86b1333a95990fddc20f5391b3f74d1d Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Fri, 6 Dec 2019 08:16:04 +0000 Subject: [PATCH] Use OpenStreetMap for map in incoming JO form. #270 --- templates/job-order/cmb.form.html.twig | 47 +++++++++++++++++++------- templates/map/initOpenStreetMap.js | 2 ++ templates/map/joOpenStreetMap.js | 2 ++ 3 files changed, 38 insertions(+), 13 deletions(-) diff --git a/templates/job-order/cmb.form.html.twig b/templates/job-order/cmb.form.html.twig index c0dc49eb..3e193e24 100644 --- a/templates/job-order/cmb.form.html.twig +++ b/templates/job-order/cmb.form.html.twig @@ -906,17 +906,6 @@ diff --git a/templates/map/joOpenStreetMap.js b/templates/map/joOpenStreetMap.js index 93ab20a6..5a50d5c3 100644 --- a/templates/map/joOpenStreetMap.js +++ b/templates/map/joOpenStreetMap.js @@ -18,6 +18,8 @@ function mapCreate(div_id, center_lat, center_lng, map_type, zoom) { id: 'mapbox/streets-v11', accessToken: 'pk.eyJ1Ijoia2NvcmRlcm8iLCJhIjoiY2szbzA3ZHdsMDZxdTNsbGl4ZGNnN2VxaSJ9.LRzAe3RlV8sIP1N1x0chdw' }).addTo(map); + + return map; }