Nevertheless Published Mine
    Have ideas to improve npm?Join in the discussion! »

    @opengeoweb/core
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.26 • Public • Published

    current version coverage

    Core

    React component library with Core components for the opengeoweb project. This library was generated with Nx.

    Installation

    npm install @opengeoweb/core
    

    Use

    You can use any component exported from core by importing them. Below you can find a simplified example on how the MapViewConnect component and several mapActions are used:

    import { useDispatch } from 'react-redux';
    import {
      mapActions,
      MapViewConnect,
      LegendConnect,
      TimeSliderConnect,
    } from '@opengeoweb/core';
    
    
    const ConnectedMapWithTimeSlider = ({
      mapId,
    }) => {
      const dispatch = useDispatch();
    
      React.useEffect(() => {
        // set layers
        dispatch(mapActions.setLayers({ layers: [radarLayer], mapId }));
        // baseLayers
        dispatch(
          mapActions.setBaseLayers({
            mapId,
            layers: [baseLayerGrey, overLayer],
          }),
        );
      }, []);
    
      return (
            <LegendConnect mapId={mapId} />
            <MapViewConnect mapId={mapId} displayTimeInMap />
            <TimeSliderConnect mapId={mapId} />
      );
    };
    
    export default ConnectedMapWithTimeSlider;
    
    
    

    Documentation

    https://opengeoweb.gitlab.io/opengeoweb/docs/core/

    Keywords

    none

    Install

    npm i @opengeoweb/core

    DownloadsWeekly Downloads

    43

    Version

    1.0.26

    License

    Apache-2.0

    Unpacked Size

    1.54 MB

    Total Files

    392

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar