Moved static map fallback to scripts.js

This commit is contained in:
Oleh Zasadnyy 2014-09-01 13:49:06 +03:00
parent fbaeb935bb
commit 3a2946384c
5 changed files with 31 additions and 13 deletions

View file

@ -293,6 +293,11 @@
s.parentNode.insertBefore(po, s);
}
// Google maps static
if (typeof staticGoogleMaps !== 'undefined') {
$('#canvas-map').addClass('image-section').css('background-image','url(http://maps.googleapis.com/maps/api/staticmap?zoom=17&center=' + mobileCenterMapCoordinates +'&size=' + $(window).width() + 'x700&scale=2&language=en&markers=icon:' + icon +'|'+ eventPlaceCoordinates +'&maptype=roadmap&style=visibility:on|lightness:40|gamma:1.1|weight:0.9&style=element:labels|visibility:off&style=feature:water|hue:0x0066ff&style=feature:road|visibility:on&style=feature:road|element:labels|saturation:-30)');
}
//Google maps
if (typeof googleMaps !== 'undefined') {
var map, autocomplete, directionsDisplay, geocoder, polyline, origin;

2
js/scripts.min.js vendored

File diff suppressed because one or more lines are too long