Add |raw when inserting a map key to make sure special characters are properly read. #221

This commit is contained in:
Korina Cordero 2019-06-11 07:34:06 +00:00
parent bc110c1353
commit 4a608b50b9
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
<script type='text/javascript' src='http://www.bing.com/api/maps/mapcontrol?callback=GetMap&key={{ bingmaps_api_key }}' async defer></script>
<script type='text/javascript' src='http://www.bing.com/api/maps/mapcontrol?callback=GetMap&key={{ bingmaps_api_key|raw }}' async defer></script>
<script>
var polygons = new Array();

View file

@ -1,11 +1,11 @@
<script src="//maps.google.com/maps/api/js?key={{ gmaps_api_key }}" type="text/javascript"></script>
<script src="//maps.google.com/maps/api/js?key={{ gmaps_api_key|raw }}" type="text/javascript"></script>
<script src="/assets/vendors/custom/gmaps/gmaps.js" type="text/javascript"></script>
<script>
var polygons = new Array();
initMap();
initMap();
function initMap() {
var map = new google.maps.Map(document.getElementById('m_geomap'),