1.2.2 • Published 1 month ago

@startinblox/cqcm-map v1.2.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

CQCM Map

Getting started

Use in production

For production usage, map is served via a CDN like JSDelivr or self-hosted.

  <script type="module" src="https://cdn.jsdelivr.net/npm/@startinblox/core@latest/dist/index.js" defer=""></script>
  <script type="module" src="https://cdn.jsdelivr.net/npm/@startinblox/cqcm-map@latest" defer=""></script>
  <!-- ... -->
  <solid-cqcm-map data-src="https://your-proxy-server/your-map-endpoint"></solid-cqcm-map>

Development environment

To set up the local development environment with Storybook:

npm install
npm run storybook

Development workflow

Localization

This project utilizes @lit/localize for internationalization.

To change the locale at runtime within an application:

window.setLocale.map((setLocale) => setLocale("your-lang-code"));

To retrieve the current locale:

window.getLocale.map((locale) => console.log(locale));

Testing

# Run all tests
npm run cy:run
# Open Cypress's interface
npm run cy:open

Building for production

# Generate localization files
npm run locale:build
# Generate Storybook documentation
npm run build-storybook
# Build the component repository
npm run build

License

MIT

1.2.2

1 month ago

1.2.1

1 month ago

1.2.0

1 month ago

1.1.10

1 month ago

1.1.9

1 month ago

1.1.8

1 month ago

1.1.7

1 month ago

1.1.6

1 month ago

1.1.5

1 month ago

1.1.4

1 month ago

1.1.3

1 month ago

1.1.2

1 month ago

1.1.1

1 month ago

1.1.0

1 month ago

1.0.0

2 months ago