mirror of
https://github.com/medialab-prado/datamad2017.git
synced 2025-06-07 14:01:29 +02:00
Moved static map fallback to scripts.js
This commit is contained in:
parent
fbaeb935bb
commit
3a2946384c
5 changed files with 31 additions and 13 deletions
|
@ -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¢er=' + 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
2
js/scripts.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue