4 repositorios
Shares the map instance across the component tree via React context for coordinated access and updates.
Distinct from React Map Components: Distinct from React Map Components: focuses on the context-based sharing mechanism rather than the component library itself.
Explore 4 awesome GitHub repositories matching graphics & multimedia · Context-Based Instance Sharing. Refine with filters or upvote what's useful.
MapCN is a React component library that wraps MapLibre GL into declarative, composable building blocks for interactive maps. It provides a set of small, reusable components for rendering maps, placing markers, drawing routes, and clustering points, all managed through React hooks, context, and refs for state and lifecycle control. The library distinguishes itself by offering a complete set of map features as individual React components that automatically adapt to light and dark themes. It includes components for interactive map rendering with zero configuration, marker placement with popups a
Shares the underlying MapLibre map instance across the component tree via React context for coordinated access and updates.
Este proyecto es una librería de componentes GIS y un envoltorio de React para la librería de mapas Leaflet. Actúa como un puente entre la API imperativa de Leaflet y la gestión de estado declarativa de React, permitiendo la creación de mapas geográficos interactivos y visualizaciones de datos espaciales. La librería utiliza una arquitectura basada en componentes para renderizar mapas con marcadores y capas. Sincroniza el DOM virtual de React con el registro de capas interno del mapa para mantener un estado geográfico consistente, mapeando los ciclos de vida de los componentes a la adición y eliminación de capas del mapa. La herramienta proporciona capacidades para la gestión dinámica del estado del mapa y la integración de eventos de mapa. Permite la distribución de instancias de mapa a través de un proveedor y expone la instancia subyacente de Leaflet mediante referencias para el acceso directo a métodos de bajo nivel de la API de mapas.
Shares the map instance across the component tree via React context for coordinated access and updates.
kbar is a React command palette library that gives applications a searchable overlay for finding and executing commands using the keyboard. It includes keyboard shortcut binding, so users can trigger commands directly without opening the palette, and supports nested sub-menu navigation, allowing actions to be organized into hierarchical groups that can be drilled into and back out of with arrow keys. The library differentiates itself through a hook-based API that lets any React component register commands and shortcuts declaratively, alongside a global keyboard listener that handles palette a
Shares command palette state across the component tree using React Context, eliminating prop threading.
React Google Maps API is a component library designed to embed interactive Google Maps and geographic overlays inside React applications using declarative markup. It provides tools for building responsive mapping interfaces within component-based architectures to handle user navigation and location data. The library manages the integration by wrapping imperative mapping library instances inside declarative component lifecycles, translating React updates into the appropriate DOM mutations. It includes an asynchronous script injection loader that tracks and initializes external script dependen
Shares map instances across the component tree via context for coordinated access.