UNPKG

@here/harp-examples

Version:
1 lines 2.31 kB
(()=>{"use strict";var e={7503:(e,t,n)=>{t.f=void 0;const r=n(5636),o=n(3074),i=n(2998),a=n(4565);t.f||(t.f={}),function(){const e=function(e){const t=document.getElementById("mapCanvas"),n=new o.MapView({canvas:t,theme:"resources/berlin_tilezen_base.json"});o.CopyrightElementHandler.install("copyrightNotice",n);const i=new r.MapControls(n);i.maxTiltAngle=50;const a=new r.MapControlsUI(i,{zoomLevel:"input",projectionSwitch:!0});return t.parentElement.appendChild(a.domElement),n.resize(window.innerWidth,window.innerHeight),window.addEventListener("resize",(()=>{n.resize(window.innerWidth,window.innerHeight)})),n}(),t=new i.VectorTileDataSource({baseUrl:"https://vector.hereapi.com/v2/vectortiles/base/mc",apiFormat:i.APIFormat.XYZOMV,styleSetName:"tilezen",authenticationCode:a.apikey,authenticationMethod:{method:i.AuthenticationMethod.QueryString,name:"apikey"},copyrightInfo:a.copyrightInfo});e.addDataSource(t)}()},4428:e=>{e.exports=THREE}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.m=e,n.x=e=>{},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.j=367,(()=>{var e={367:0,738:0},t=[[7503,592]],r=e=>{},o=(o,i)=>{for(var a,l,[s,p,c,h]=i,u=0,d=[];u<s.length;u++)l=s[u],n.o(e,l)&&e[l]&&d.push(e[l][0]),e[l]=0;for(a in p)n.o(p,a)&&(n.m[a]=p[a]);for(c&&c(n),o&&o(i);d.length;)d.shift()();return h&&t.push.apply(t,h),r()},i=self.webpackChunk_here_harp_examples=self.webpackChunk_here_harp_examples||[];function a(){for(var r,o=0;o<t.length;o++){for(var i=t[o],a=!0,l=1;l<i.length;l++){var s=i[l];0!==e[s]&&(a=!1)}a&&(t.splice(o--,1),r=n(n.s=i[0]))}return 0===t.length&&(n.x(),n.x=e=>{}),r}i.forEach(o.bind(null,0)),i.push=o.bind(null,i.push.bind(i));var l=n.x;n.x=()=>(n.x=l||(e=>{}),(r=a)())})(),n.x()})();