
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@dlr-eoc/map-three
Advanced tools
This is a angular module that exports a threejs component which uses a canvas of a OpenLayers map as a texture.
This module exposes a component ukis-map-three
analogous to ukis-map-ol
.
There are a few objects that are very big, but still irregularly shaped. Because they are big, it makes sense to serve their image-material per WMTS instead of a single, humongous file. Because they are irregularly shaped, it makes sense to display them in 3d.
Here we use threejs to address those requirements. A threejs scene is being created with orbit-control circling around a singular Mesh. This mesh makes use of a custom shader, that uses a canvas of a map in EPSG:4326 as a texture. This way, any map in EPSG:4326 can be wrapped around any shape. The texture-canvas is being kept in sync with the map. As such, when new tiles are loaded on the map, they are immediately visible on the mesh.
We have attempted to create a design as similar as possible to the existing ukis-map-ol
.
There is a component MapThreeComponent
that accepts all relevant parameters as @Input
.
There is a service MapThreeService
that handles the actual setup of a threejs-scene and all other interaction with the threejs-API.
We also sync the scene with MapStateService
so that all maps in the app show the same information.
Contrary to ukis-map-ol
, however, no LayerService
or controls
are expected. Instead, the component expects an MapOlService
as inputs.
The reason for this difference is that this component does in fact depend on openlayers: the map that is wrapped around our mesh must have been generated somewhere.
Create a ukis-map-ol
anyway, but hide it behind ukis-map-three
. This way, openlayers can still handle all the WMTS loading logic and other complicated map-functionality, while this component continues to focus on 3d-specific problems.
FAQs
This is a angular module that exports a threejs component which uses a canvas of a OpenLayers map as a texture.
The npm package @dlr-eoc/map-three receives a total of 1 weekly downloads. As such, @dlr-eoc/map-three popularity was classified as not popular.
We found that @dlr-eoc/map-three demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.