Add |raw when inserting a map key to make sure special characters are properly read. #221
This commit is contained in:
parent
bc110c1353
commit
4a608b50b9
2 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue