This website works better with JavaScript
首頁
探索
說明
登入
bernie
/
jku-ba-react
關註
1
讚好
0
複刻
0
Files
問題管理
0
合併請求
0
Wiki
頁面:
Google Map React
Google Map React
Leaflet Map
Map GL
Mapbox-GL
Pigeon Map
Redux
react-geo
HTTPS
SSH
Google Map React
Bernadette Elena Hammerle 於
4 年之前
修改了此頁面
Google Map React
Install
npm install google-map-react
First steps
create component and route
copy example from readme
https://github.com/google-map-react/google-map-react
parameters:
https://github.com/google-map-react/google-map-react/blob/master/API.md
Google API key
log in
https://console.cloud.google.com/
create a new project
activate JavaScript API from the library
Anmeldedaten erstellen - API-Schlüssel
https://blog.kulturbanause.de/2020/03/google-maps-api-key-erstellen-und-einrichten/
limit key to localhost
error: for development purposes only -> add credit card information to google account! (90 days 300$)
create marker component
Observations
keyboard shortcuts are enabled
mouse click on map is enabled
zoom and fullscreen buttons are there by default
no marker component
many urls in the documentation are outdated and cannot be opened
no documentation for draggable markers? -> found tutorial (draggable map, mouse on child)
刪除頁面
這將刪除頁面
"Google Map React"
。請三思而後行。
取消操作
確認操作