This website works better with JavaScript
首页
发现
帮助
登录
bernie
/
jku-ba-react
关注
1
点赞
0
派生
0
文件
工单管理
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"
,请三思而后行。
取消操作
确认操作