UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

1 lines 2.22 kB
module.exports=function(i){var n={};function s(t){if(n[t])return n[t].exports;var e=n[t]={exports:{},id:t,loaded:!1};return i[t].call(e.exports,e,e.exports,s),e.loaded=!0,e.exports}return s.m=i,s.c=n,s.p="",s(0)}({0:function(t,e,i){t.exports=i(923)},3:function(t,e){t.exports=function(){throw Error("define cannot be used indirect")}},923:function(t,e,i){var n;i(3),i=[i(924),i(925)],void 0===(e="function"==typeof(n=function(){var i=window.kendo.jQuery,t=void 0,e=window.kendo,n=e.Class,s=e.dataviz,o=e.deepExtend,r=s.map.Extent,p,a=e.drawing.util.defined,d=n.extend({init:function(t,e){this._initOptions(e);this.map=t;this.element=i("<div class='k-layer'></div>").css({zIndex:this.options.zIndex,opacity:this.options.opacity}).appendTo(t.scrollElement);this._beforeReset=this._beforeReset.bind(this);this._reset=this._reset.bind(this);this._resize=this._resize.bind(this);this._panEnd=this._panEnd.bind(this);this._activate();this._updateAttribution()},destroy:function(){this._deactivate()},show:function(){this.reset();this._activate();this._applyExtent(true)},hide:function(){this._deactivate();this._setVisibility(false)},reset:function(){this._beforeReset();this._reset()},_reset:function(){this._applyExtent()},_beforeReset:i.noop,_resize:i.noop,_panEnd:function(){this._applyExtent()},_applyExtent:function(){var t=this.options;var e=this.map.zoom();var i=!a(t.minZoom)||e>=t.minZoom;var n=!a(t.maxZoom)||e<=t.maxZoom;var s=r.create(t.extent);var o=!s||s.overlaps(this.map.extent());this._setVisibility(i&&n&&o)},_setVisibility:function(t){this.element.css("display",t?"":"none")},_activate:function(){var t=this.map;this._deactivate();t.bind("beforeReset",this._beforeReset);t.bind("reset",this._reset);t.bind("resize",this._resize);t.bind("panEnd",this._panEnd)},_deactivate:function(){var t=this.map;t.unbind("beforeReset",this._beforeReset);t.unbind("reset",this._reset);t.unbind("resize",this._resize);t.unbind("panEnd",this._panEnd)},_updateAttribution:function(){var t=this.map.attribution;if(t)t.add(this.options.attribution)}});o(s,{map:{layers:{Layer:d}}})})?n.apply(e,i):n)||(t.exports=e)},924:function(t,e){t.exports=require("../../../kendo.core")},925:function(t,e){t.exports=require("../location")}});