/* azure-maps-html-marker-layer Version: 0.0.1 MIT License - Copyright (c) Microsoft Corporation. */ !function(e,y){"use strict";var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function t(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var n=function(){return(n=Object.assign||function(e){for(var t,r=1,o=arguments.length;rn[0]&&t[1]=a.minZoom&&i<=a.maxZoom))return[3,5];n=t.getSource(),s="string"==typeof n?n:n.getId(),l=r.map.querySourceFeatures(s,{sourceLayer:t.getOptions().sourceLayer,filter:a.filter}),u=[],c=[],v=f=h=m=d=p=void 0,k=0,_=l.length,e.label=1;case 1:return k<_?(p=v=null,l[k]instanceof y.Shape?"Point"===(h=l[k]).getType()&&(m=h.getCoordinates(),d=h.getProperties(),p=h.getId()):"Point"===(f=l[k]).geometry.type&&(m=f.geometry.coordinates,(d=f.properties)&&d.cluster?p="cluster_"+f.properties.cluster_id:f.id&&(p=f.id)),m?[4,t._getMarker(p,m,d)]:[3,3]):[3,4];case 2:(v=e.sent())._eventsAttached||(t._addEvents(v),v._eventsAttached=!0),v&&(v.id&&c.push(v.id),v.id&&-1!==t._markerIds.indexOf(v.id)||(u.push(v),r.markers.add(v))),e.label=3;case 3:return k++,[3,1];case 4:for(k=o.length-1;0<=k;k--)o[k].id&&-1!==c.indexOf(o[k].id)||(r.markers.remove(o[k]),o.splice(k,1));return t._markers=o.concat(u),t._markerIds=c,[3,6];case 5:0t.colors.length;)n.length'],d="",m=void 0;if(0\n ')),0'+k+""),p.push(""),b.prototype.getOptions.call(this).htmlContent.innerHTML=p.join("")}},C.prototype._createSlice=function(e,t,r,o,a,i,n,s){var l=this._options,u=Math.PI,c="";if(s&&(c=' mask="url(#'+s+'"'),2*u*.99"+n+"";var p=Math.sin,d=Math.cos,m=e+r*p(o),h=t-r*d(o),f=e+r*p(o+a),v=t-r*d(o+a),_=(l.innerRadius,p(o),l.innerRadius,d(o),l.innerRadius,p(o+a),l.innerRadius,d(o+a),0);return u"+n+""},C._moreColors=[],C);function C(e){var t=b.call(this,e)||this;return t._options={values:[],radius:40,colors:["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],fillColor:"transparent",strokeWidth:0,strokeColor:"#666666",innerRadius:0},t._total=0,t.properties={},b.prototype.setOptions.call(t,{htmlContent:document.createElement("div"),pixelOffset:[0,0],anchor:"center"}),t.setOptions(e),t}var d=r.merge("atlas.layer",c);e.PieChartMarker=p,e.layer=d}(this.atlas=this.atlas||{},atlas);