@here/harp-examples
Version:
harp.gl Examples
1 lines • 2.36 kB
JavaScript
(()=>{"use strict";var e={5040:(e,t,n)=>{t.C=void 0;const r=n(8957),o=n(5636),i=n(3074),a=n(2998),l=n(4565);(t.C||(t.C={})).mapView=function(e){const t=document.getElementById("mapCanvas"),n=new r.GeoCoordinates(40.707,-74.01),s=new i.MapView({canvas:t,theme:{extends:"resources/berlin_tilezen_base.json",styles:{tilezen:[{layer:"places",technique:"squares",when:["==",["geometry-type"],"Point"],color:"#ff00ff",size:500}]}},target:n,tilt:50,heading:-20,zoomLevel:15.1});i.CopyrightElementHandler.install("copyrightNotice",s);const p=new o.MapControls(s);p.maxTiltAngle=50;const c=new o.MapControlsUI(p,{zoomLevel:"input"});return t.parentElement.appendChild(c.domElement),s.resize(window.innerWidth,window.innerHeight),window.addEventListener("resize",(()=>{s.resize(window.innerWidth,window.innerHeight)})),function(e){const t=new a.VectorTileDataSource({baseUrl:"https://vector.hereapi.com/v2/vectortiles/base/mc",authenticationCode:l.apikey});e.addDataSource(t)}(s),s}()},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=399,(()=>{var e={399:0,738:0},t=[[5040,592]],r=e=>{},o=(o,i)=>{for(var a,l,[s,p,c,u]=i,d=0,h=[];d<s.length;d++)l=s[d],n.o(e,l)&&e[l]&&h.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);h.length;)h.shift()();return u&&t.push.apply(t,u),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()})();