
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
react-easy-google-maps
Advanced tools
A component for react that provides integration with google maps. Install it, put the API key in the component and you're done.
React Easy Google Maps is a React component that facilitates integration with Google Maps. With this component, you can easily add a map to your React application by simply providing the coordinates (latitude and longitude) and a Google Maps API key, without more configuration.
To use the component in your project, install it via npm:
npm install react-easy-google-maps
Or, if you're using yarn:
yarn add react-easy-google-maps
import React from 'react';
import { EasyMap, MapProvider } from 'react-easy-google-maps';
const MyComponent = () => {
const apiKey = "SUA_GOOGLE_MAPS_API_KEY"; // Substitua pela sua chave de API
const lat = -23.55052; // Exemplo de latitude
const lon = -46.633308; // Exemplo de longitude
return (
<MapProvider api_key={apiKey}>
<EasyMap lat={lat} lon={lon} />
</MapProvider>
);
};
export default MyComponent;
I'm developer
FAQs
A component for react that provides integration with google maps. Install it, put the API key in the component and you're done.
The npm package react-easy-google-maps receives a total of 8 weekly downloads. As such, react-easy-google-maps popularity was classified as not popular.
We found that react-easy-google-maps demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.