@here/harp-examples
Version:
harp.gl Examples
1 lines • 2.07 kB
JavaScript
(()=>{"use strict";var e={7499:(e,r,t)=>{r.O=void 0;const n=t(8957),o=t(3074),a=t(4428),l=t(7201),i=t(4038);!function(e){const r=i.HelloWorldExample.mapView,t=new n.GeoCoordinates(40.70497091,-74.0135);r.lookAt({target:t,zoomLevel:20,tilt:40,heading:40});const s=new a.Clock;let p,u;(new l.FBXLoader).load("resources/dancing.fbx",(e=>{u=new a.AnimationMixer(e),u.clipAction(e.animations[0]).play(),p=e,p.traverse((e=>{e.renderOrder=1e4})),p.renderOrder=1e4,p.rotateX(Math.PI/2),p.scale.set(.3,.3,.3),p.name="guy",p.anchor=t,p.overlay=!0,r.mapAnchors.add(p)})),r.addEventListener(o.MapViewEventNames.Render,(e=>{if(u){const e=s.getDelta();u.update(e)}})),r.beginAnimation()}(r.O||(r.O={}))},4428:e=>{e.exports=THREE}},r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{}};return e[n].call(o.exports,o,o.exports,t),o.exports}t.m=e,t.x=e=>{},t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.j=364,(()=>{var e={364:0,738:0},r=[[7499,592]],n=e=>{},o=(o,a)=>{for(var l,i,[s,p,u,d]=a,c=0,f=[];c<s.length;c++)i=s[c],t.o(e,i)&&e[i]&&f.push(e[i][0]),e[i]=0;for(l in p)t.o(p,l)&&(t.m[l]=p[l]);for(u&&u(t),o&&o(a);f.length;)f.shift()();return d&&r.push.apply(r,d),n()},a=self.webpackChunk_here_harp_examples=self.webpackChunk_here_harp_examples||[];function l(){for(var n,o=0;o<r.length;o++){for(var a=r[o],l=!0,i=1;i<a.length;i++){var s=a[i];0!==e[s]&&(l=!1)}l&&(r.splice(o--,1),n=t(t.s=a[0]))}return 0===r.length&&(t.x(),t.x=e=>{}),n}a.forEach(o.bind(null,0)),a.push=o.bind(null,a.push.bind(a));var i=t.x;t.x=()=>(t.x=i||(e=>{}),(n=l)())})(),t.x()})();