This package has been deprecated

Author message:

DEPRECATED: This package has been renamed to @xweather/maps-ui-sdk. Update with 'npm install @xweather/maps-ui-sdk' or 'yarn add @xweather/maps-ui-sdk'.

@xweather/map-ui-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

DEPRECATED: map-ui-sdk

This package has been deprecated and renamed to @xweather/maps-ui-sdk.
Please update your dependencies to use the new package.

For future updates and support, refer to the new package:
@xweather/maps-ui-sdk


map-ui-sdk is a React UI toolkit for enhancing mapping interfaces with interactive UI controls. It features both standalone UI components and specialized controls designed to integrate seamlessly with our MapsGL service.

MapsGL components

MapsGLMapControllerProvider
Core provider that integrates with the MapsGL Map Controller, providing access to map controller instances throughout your application.

MapsGLLayersProvider
State management solution for MapsGL weather layers, handling layer lifecycle, styling, and state synchronization.

MapsGLLayersControl
Interface for managing map layer visibility and styling, supporting both individual and grouped layer controls.

MapsGLTimelineControl
Specialized timeline interface for time-based map animations, offering navigation, dynamic tick marks, and settings panel for customizing animation speed and time ranges.

MapsGLSearchControl
Pre-configured search interface designed for MapsGL integration, with built-in result grouping and location history.

Visit our documentation for more information for a complete list of components and usage examples.

Getting Started

yarn add @xweather/map-ui-sdk

Import the required styles:

import '@xweather/map-ui-sdk/dist/style.css'

Example Project

The SDK includes an example project that demonstrates how to build a complete mapping interface using the various components and providers. It serves as both a reference implementation and a playground for experimenting with different configurations.

Prerequisites

  • An Xweather account— We offer a free developer account for you to give our weather API a test drive.
  • A Mapbox account

Steps to Run

  1. Get Xweather MapsGL ID and Secret Log into your Xweather account, and from your account's Apps page, create a new application for the MapsGL Demo app. Make note of the application's Xweather MapsGL ID and Secret.

  2. Get Xweather Mapbox public access token The example project relies on Mapbox, so you'll need to log into or create a Mapbox account and follow the instructions to create a Mapbox public access token.

  3. Navigate to the Example Directory

cd ./example
  1. Install Dependencies
yarn install
  1. Update environment variables Rename .env.template to .env and add your access keys:
VITE_MAPBOX_KEY=''
VITE_MAPSGL_ID=''
VITE_MAPSGL_SECRET=''
  1. Run the project
yarn dev

Documentation

For detailed documentation, examples, and API references, visit:

TypeScript Support

The SDK includes comprehensive TypeScript definitions, providing full type safety and excellent IDE support.

Support

Submit a new ticket with any questions, bug reports or feature suggestions you have.

Readme

Keywords

none

Package Sidebar

Install

npm i @xweather/map-ui-sdk

Weekly Downloads

6

Version

1.0.1

License

MIT

Unpacked Size

5.15 MB

Total Files

602

Last publish

Collaborators

  • four43
  • lhuffmam
  • oliver.alexander.aw
  • u10int