1.0.9 • Published 9 months ago

react-easy-google-maps v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

React Easy Map

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.

Install

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

Use/Examples

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;

Donate

Stripe

Reference

Documentation

Documentação

Licença

ISC

🚀 About me

I'm developer

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago