Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to react-map-gl 7 to use maplibre to allow usage without mapb… #266

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions network-map-viewer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# dependencies
/node_modules

# production
/build

/coverage
/es
/lib
/umd
npm-debug.log*

/dist

# webstorm
/.idea

# misc
.env.local
.env.development.local
.env.test.local
.env.production.local

/demo/node_modules
/demo/build
1 change: 1 addition & 0 deletions network-map-viewer/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
1 change: 1 addition & 0 deletions network-map-viewer/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
4 changes: 4 additions & 0 deletions network-map-viewer/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 4,
"singleQuote": true
}
373 changes: 373 additions & 0 deletions network-map-viewer/LICENSE

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions network-map-viewer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Network-map-viewer
Library for a react component showing a network (substations, voltage levels, lines) over a map.

To build the library:
```console
npm run build
```

# Demo
The library includes a demo react app, in the demo directory (the network-map-viewer component is instantiated in demo/src/App.js).

To run the demo:
```console
cd demo
npm run build
npm start
```
and point the browser to http://localhost:3000

### Notes
Component's code based on Deck.gl and Mapbox-gl, extracted from the [gridstudy-app](https://github.com/gridsuite/gridstudy-app) project.
1 change: 1 addition & 0 deletions network-map-viewer/demo/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
Loading