;(function($,_,undefined){"use strict";ips.controller.register('lego.front.calendar.event',{_mapReady:false,_map:null,initialize:function(){this.setup();},setup:function(){var self=this;$('head').append("<link rel='stylesheet' type='text/css' media='all' href='https://api.mapbox.com/mapbox.js/v3.1.1/mapbox.css'><link href='https://api.mapbox.com/mapbox.js/plugins/leaflet-markercluster/v1.0.0/MarkerCluster.css' rel='stylesheet' /><link href='https://api.mapbox.com/mapbox.js/plugins/leaflet-markercluster/v1.0.0/MarkerCluster.Default.css' rel='stylesheet' /><link rel='stylesheet' type='text/css' media='all' href='https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/leaflet.fullscreen.css' />");ips.loader.get(['https://api.mapbox.com/mapbox.js/v3.1.1/mapbox.js']).then(function(){ips.loader.get(['https://api.mapbox.com/mapbox.js/plugins/leaflet-markercluster/v1.0.0/leaflet.markercluster.js','https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js']).then(function(){self._setUpMap();self._mapReady=true;});});},_setUpMap:function(){var mapDiv=this.scope.find('#legoCalendarMap');var lat=mapDiv.attr('data-lat');var long=mapDiv.attr('data-long');L.mapbox.accessToken=ips.getSetting('mapApiKey');this._map=L.mapbox.map(mapDiv.get(0),'',{zoomControl:false,minZoom:2}).setView([lat,long],8).addLayer(L.mapbox.styleLayer('mapbox://styles/mapbox/streets-v11'));L.control.attribution({position:'topright'}).addTo(this._map);L.control.zoom({position:'topright'}).addTo(this._map);Debug.log(L.control);this._map.addControl(new L.Control.Fullscreen({position:'topleft'}));var marker=L.marker([lat,long],{});marker.addTo(this._map);}});}(jQuery,_));;