We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
react-map-gl
+ New Project
Vite
react-ts
npm i -f maplibre-gl react-map-gl
src/App.tsx
import { Map, GeolocateControl, NavigationControl, } from 'react-map-gl/maplibre'; import 'maplibre-gl/dist/maplibre-gl.css'; function App() { return ( <div style={{ width: '100vw', height: '100vh' }}> <Map initialViewState={{ longitude: 139.795897, latitude: 35.723547, zoom: 12, }} style={{ width: '100%', height: '100%' }} mapStyle="https://tile.openstreetmap.jp/styles/osm-bright-ja/style.json" > <GeolocateControl position="top-right" /> <NavigationControl position="top-right" visualizePitch={true} showZoom={true} showCompass={true} /> </Map> </div> ); } export default App;
npm install --legacy-peer-deps && npm run dev
The text was updated successfully, but these errors were encountered:
Thanks @yuiseki, it works with me, too. https://stackblitz.com/edit/vitejs-vite-4it7c9?file=src%2FApp.tsx
Sorry, something went wrong.
PMTiles を使えるようにして、hash をつけることに成功しました。 https://stackblitz.com/edit/vitejs-vite-dl3ktd?file=src%2FApp.tsx
#274
hfu
yuiseki
No branches or pull requests
Actual Examples
most simple react-map-gl on vitejs
layer of react-map-gl on vitejs
How to start your own
react-map-gl
project at StackBlitzOpen https://stackblitz.com/
Sign up with GitHub Account
Click
+ New Project
Click
Vite
Click
react-ts
Input Terminal
Edit
src/App.tsx
Input Terminal
npm install --legacy-peer-deps && npm run dev
The text was updated successfully, but these errors were encountered: