@ngis/plugin-sdk
v0.4.0
Published
Types-first SDK for authoring NeoGIS map plugins.
Readme
@ngis/plugin-sdk
The public, types-first authoring contract for NeoGIS map plugins.
npm install --save-dev @ngis/plugin-sdkimport { defineNgisPlugin, type NgisPlugin } from "@ngis/plugin-sdk";
const plugin: NgisPlugin = defineNgisPlugin({
manifest: {
id: "com.example.my-plugin",
name: "My plugin",
version: "0.1.0",
minNgisVersion: "0.4.0",
capabilities: {},
},
});
export default plugin;Plugin builds must leave @ngis/plugin-sdk external. The running NeoGIS host
provides the runtime through its plugin import map. The npm package supplies the
real public declarations plus small host-delegating shims; bundling it into a
plugin would create a runtime copy that is disconnected from the host.
The package version matches NGIS_MAP_API_VERSION. Use
create-ngis-plugin for a complete buildable starter.
