Overview of the Re:Earth Visualizer Plugin API
reearth.website·Indexed 34 days ago
https://docs.reearth.io/Documentation for Re:Earth and Re:Earth CMS, a headless CMS designed to handle both standard content and geospatial data. Includes guides on managing models, items, assets, and schemas, as well as instructions for importing/exporting content via JSON, CSV, and GeoJSON.
reearth.reearth object available on the WebAssembly side of the plugin.Assets are files uploaded to a project and are accessible from any model within that project. Assets are managed via the Assets screen in the left menu. Permissions for asset management are as follows:
Comments allow members to communicate regarding specific entities within reearth. Comments can be posted and viewed from both the list and detail screens of the following targets:
reearth.timeline namespace allows plugins to manage the scene's chronological data and animations. Because the timeline may not be available in all contexts, methods should be called using optional chaining (?.).Re:Earth CMS provides three primary ways to interact with its data and resources depending on the use case and security requirements:
reearth.viewer.viewport object provides information about the current map area and the page's URL query parameters. isMobile is determined based on bowser's user-agent detection.type Viewport = {
width: number;
height: number;
isMobile: boolean;
query: Record<string, string>;
};
reearth.viewer.viewport: Viewport;