Core Package
The core package provides the foundational functionality for the Wemap SDK, including initialization, configuration management, and HTTP client services.
Features
- SDK Initialization: Initialize the SDK with your livemap ID and authentication token
- Configuration Management: Access global configuration across all SDK packages
- HTTP Client: Robust HTTP client with automatic JSON parsing, error handling, and timeout support
- Livemap Service: Fetch and parse livemap data from the Wemap API
Getting Started
import { core } from '@wemap/core';
// Initialize the SDK
await core.init({
emmid: 'your-emmid',
token: 'your-token',
env: 'production' // or 'development'
});
// Access configuration
const config = CoreConfig.getConfig();
Main Classes
- CoreConfig: Main configuration class for SDK initialization
- HttpClient: HTTP client for making API requests
- LivemapService: Service for fetching livemap data