react-google-maps satelite
import React from 'react';
import {GoogleMap} from "@react-google-maps/api";
import {useLoadScript} from "@react-google-maps/api";
const mapContainerStyle = {
width: '100vw',
height: '100vh',
}
const center = {
lat: 31.968599,
lng: -99.901810,
}
const options = {
mapTypeControl: true, // This allows user to switch between map and satelite mode
}
export default function GoogleMaps() {
const{isLoaded, loadError} = useLoadScript({
googleMapsApiKey: '<Your API Key>', // Insert your API key here
});
if (loadError) return "Error loading Maps";
if (!isLoaded) return "Loading Maps";
return(
<GoogleMap
mapContainerStyle={mapContainerStyle}
zoom={11}
center={center}
options={options}
/>
)
}
Also in JavaScript:
- onclick timer javascript
- javascript founder
- react bootstrap hide toggle menu when scrolling down
- object destructuring into this
- javascript print int with leading zeros
- for of and for in javascript
- nodejs fs delete non empty directory
- javascript create element in a new line
- express post request body undefined
- node updaten
- for each array javascript
- how to change css with js
- ngingx proxy express get real ip
- javascript get srollwidth
- react native navigation shared element
- tobe a number jest
- install node js in manjaro
- create function javascript
- if else render react
- number is even or odd fucntion in javascript
- difference between var let and const in javascript with example
- react keep screen on
- alert user javascript
- node load file