张卓
2022-09-29 4ef1c909df36c48f7f040e9ec408fc15e6745e71
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04dff74e"],{"891d":function(e,t,n){"use strict";n("ac84")},ac84:function(e,t,n){},b5b4:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%",height:"100%"},attrs:{id:"container"}})},o=[],c=n("1157"),i=n.n(c),r={components:{},props:{},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){this.init()},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{init:function(){var e=new AMap.Map("container",{mapStyle:"amap://styles/db9efe6a1745ac24b7269b862f359536",zoom:9,center:[120.198254,36.465551],zooms:[4,12],pitch:46,viewMode:"3D"});i.a.get("//a.amap.com/Loca/static/mock/qingdao_500m.tsv",(function(t){var n=new Loca.HexagonLayer({map:e,fitView:!0,eventSupport:!0});function a(e){e.map((function(e){return'<li class="color-item" style="background-color: '.concat(e.color,'"></li>')})),e.map((function(t,n){return t.range[0]=Math.round(t.range[0]),t.range[1]=Math.round(t.range[1]),n===e.length-1?'<li class="label-item">'.concat(t.range[0],'</li><li class="label-item">').concat(t.range[1],"</li>"):'<li class="label-item">'.concat(t.range[0],"</li>")}))}n.setData(t,{lnglat:function(e){var t=e.value;return[t["lng"],t["lat"]]},value:"count",type:"tsv"}),n.setOptions({unit:"meter",mode:"count",style:{color:["#4575b4","#99d594","#e6f598","#ffffbf","#fee08b","#fee08b","#d53e4f"],radius:1e3,opacity:1,gap:300,height:[0,11500]}}),n.on("legendupdate",(function(e){var t=e.colorLegend;a(t)})),n.render()}))}}},u=r,l=(n("891d"),n("2877")),f=Object(l["a"])(u,a,o,!1,null,"4e824e5f",null);t["default"]=f.exports}}]);