Code Monkey home page Code Monkey logo

react-google-map's Introduction

react-googlemap-geocoder-samples

a react app that demonstrates how to draw a map component, place a marker on it, make the marker drag-able, zero-down on location information based on marker position and be able to position a marker on the map from form inpu.

About

This project uses is bootstrapped with Create React App and uses semantic-ui-react as its css-framework. The main 3rd party libraries used are:

  1. google-map-reactfor rendering react components on google map
  2. react-geocode for transorming google map cordinates to physical location address and viceversa

To Run it

Getting up and running is as easy as 1, 2, 3.

  1. Clone the repository.

  2. Install your dependencies

    cd path/to/sample-u; yarn
    
  3. set up Google Maps API and include your google maps API key as the value for this constant:

MAP_API = # google maps api key
  1. Start your app

    yarn start
    

Testing

Simply run yarn test and all your tests in the test/ directory will be run.

Bad Practises

In this particular example I exposed my bucket url ... you dont want to do that ... instead use .env to keep these secret

react-google-map's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.