![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
terriajs-plugin-sample
Advanced tools
🚧 Warning: This project is work-in-progress and things can break or be entirely scrapped without notice.
This repo implements a sample TerriaJS plugin. It uses the experimental terriajs-plugin-api to interface with the TerriaJS library.
Terria plugins simply provide a means of building functionality for Terria outside of the main TerriaJS library. The additional functionality can be support for a new data source by implementing a new catalog item type. Or it can add a new feature to Terria by implementing a new UI workflow(TBD).
The repo builds without errors inside a yarn workspace within the terriamap repo (details on how to setup the workspace).
Outside a yarn workspace, the project builds and emits types but with errors. The errors are because the current TerriaJS bundle does not emit and export its types. (issue tracking this problem).
git clone https://github.com/terriajs/terriamap
cd terriamap
git checkout plugins
yarn add -W https://github.com/terriajs/plugin-sample#0.0.1-alpha.1
plugins.ts
const plugins: any[] = [
import("terriajs-plugin-sample")
];
export default plugins;
Note: The file plugins.ts
is in the terriamap project root directory.
# From the terriamap directory run
yarn run gulp build
# Start terriamap web server
yarn run start
Once the server is running visit http://localhost:3001 to load the app. You should see a new plugin button to draw a 3D box on the right hand side of the app.
We currently suggest using yarn workspaces to develop plugins for terriamap. Follow these steps to to setup a yarn workspace for this plugin:
cd terriamap/
git checkout plugins # checkout plugins branch
mkdir -p packages
git clone https://github.com/terriajs/plugin-sample packages/plugin-sample
package.json
file.Edit package.json
for terriamap:
{
"private": true,
"workspaces": {
"packages": [
"packages/terriajs",
"packages/cesium",
"packages/terriajs-server"
"packages/plugin-sample" // <-- plugin-sample added here
],
...
"dependencies": {
"pm2": "^3.2.2",
"terriajs-plugin-api": "https://github.com/terriajs/plugin-api#0.0.1-alpha.1",
"terriajs-plugin-sample": "0.0.1", // <-- plugin-sample version changed to match the version in packages/plugin-sample/package.json
From your terriamap folder run:
yarn install
# Starts a terriamap build process that watches for file changes
yarn run gulp watch
cd terriamap/packages/plugin-sample
# Start a plugin build process that watches for file changes
rollup -c rollup.config.ts -w
Now when you make changes to the plugin code, terriamap will automatically rebuild the changes.
FAQs
A sample terriajs plugin.
The npm package terriajs-plugin-sample receives a total of 34 weekly downloads. As such, terriajs-plugin-sample popularity was classified as not popular.
We found that terriajs-plugin-sample demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.