New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@eeacms/volto-arcgis-block

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eeacms/volto-arcgis-block

volto-arcgis-block: Volto add-on

0.1.3
Version published
Weekly downloads
383
303.16%
Maintainers
8
Weekly downloads
 
Created

[WIP] Volto Arcgis Block

Releases Pipeline Pipeline

ArcGIS Map integration for Volto blocks

*This product is in development, at this time it is not recommended to use it.

Demo example volto-arcgis-block

Styling

To create custom styles, we need to add it in the block configuration and import the Less file into our project.

import { ARCGIS_BLOCK } from '@eeacms/volto-arcgis-block/constants';

const customBlocks = (config) => ({
  ...config.blocks.blocksConfig,
  [ARCGIS_BLOCK]: {
    ...config.blocks.blocksConfig[ARCGIS_BLOCK],
    styles: {
      ...config.blocks.blocksConfig[ARCGIS_BLOCK]?.styles,
      land: {
        title: 'Land style',
        customClass: 'land',
      },
    },
  },
  • Import the CSS in your project:
@import url('maps.less');
  • CSS structure:
.land { // <-- Wrap your design inside a class with the name you used in customClass
    .map {
        width: 100%;
        height: 600px;
        padding: 0;
        margin: 0;
    }

    .esri-view .esri-view-surface--inset-outline:focus::after {
        outline: none !important;
    }

    .esri-component.esri-zoom.esri-widget {
        margin-bottom: 0;
        box-shadow: none;
    }
}

Note: If the style selector does not show your new style, try to change the order of the declaration of the addons in package.json, giving preference to volto-arcgis-block

"addons": [
    "@eeacms/volto-arcgis-block",
    "@eeacms/volto-clms-theme"
  ],

Style example volto-arcgis-block

FAQs

Package last updated on 14 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts