Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@reearth/cesium-mvt-imagery-provider
Advanced tools
Custom ImageryProvider for Mapbox Vector Tiles (extended for Re:Earth)
const imageryProvider = new MVTImageryProvider({
urlTemplate: "http://localhost:8080/sample_mvt/{z}/{x}/{y}.mvt",
layerName: "layerName", // or "layerName1,layerName2,layerName3"
worker: true, // by default false
credit: "cesium.js",
});
const layers = viewer.scene.imageryLayers;
const currentLayer = layers.addImageryProvider(imageryProvider);
currentLayer.alpha = 0.5;
// Call `layers.remove(currentLayer);` when it is unnecessary.
See example directory for more details.
yarn
yarn unlink && yarn build && yarn run link
cd ./example
yarn && yarn dev
If you run example, you need to set sample MVT data to ./example/public
.
And you should change layerName
option for MVTImageryProvider
in ./example/src/Imagery.tsx
.
If you want to run this library on your vite project, you can do it like the following.
yarn build
cp ./dist ~/your_project && rm -rf node_modules/.vite
FAQs
Custom ImageryProvider for Mapbox Vector Tiles (extended for Re:Earth)
The npm package @reearth/cesium-mvt-imagery-provider receives a total of 20 weekly downloads. As such, @reearth/cesium-mvt-imagery-provider popularity was classified as not popular.
We found that @reearth/cesium-mvt-imagery-provider demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.