
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@maptiler/cra-template-maplibre-gl-js
Advanced tools
Quick way to star a web map application with MapLibre GL JS using Create React App.
Quick way to star a web map application with MapLibre GL JS using Create React App.
A simple fullscreen map application as an example on how to use MapTiler maps together with React and MapLibre GL JS for your own React app.
Documentation: How to display a map in React JS using MapLibre GL JS
Online demo: https://labs.maptiler.com/cra-template-maplibre-gl-js/
npm install npm@latest -g
To create a new react project run in your command-line:
npx create-react-app my-react-map --template @maptiler/cra-template-maplibre-gl-js
Navigate to the newly created project folder my-react-map
cd my-react-map
Rename or copy the .env.example
file to .env
cp .env.example .env
Open the .env
file, :warning: you will need to replace YOUR_MAPTILER_API_KEY with your own MapTiler API key.
Your MapTiler account access key is on your MapTiler Cloud account page.
:information_source: If you don't have an API KEY you can create it for free at https://www.maptiler.com/cloud/
To start your local environment run:
npm start
You will find your app on address http://localhost:3000/.
Now you should see the app in your browser.
To build for production, run:
npm run build
To deploy the app to the gh-pages branch, run:
npm run deploy
Distributed under the MIT License. See LICENSE
for more information.
Instead of using or developing a custom map component you can use the reac-map-gl component
FAQs
Quick way to star a web map application with MapLibre GL JS using Create React App.
The npm package @maptiler/cra-template-maplibre-gl-js receives a total of 1 weekly downloads. As such, @maptiler/cra-template-maplibre-gl-js popularity was classified as not popular.
We found that @maptiler/cra-template-maplibre-gl-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.