Coder Social home page Coder Social logo

angular-mapit's Introduction

Mapit 🌎

A simple Angular framework based Google Maps with place search feature. πŸ—ΊοΈπŸ§­

Description πŸŽ€

A google map based on angular with draggable marker and place search bar to get address and laitude, longitude coordinates.

You've to use your own google API key and enable restrictions. In order to do, kindly, follow up this link. πŸ›ŽοΈ

Make sure to enable the Maps Javascript API (Show Map), Places API (Places search results) & Geocoding API (Convert Lat, Long to address). ⏰

Tools used 🧰

To run πŸƒ

  1. git clone https://github.com/Kshatriyaprithviraj/Angular-Mapit.git
  2. navigate to folder and run npm install
  3. open http://localhost:4200

Disclaimer ⚑

Depending upon the AGM version, you may get an error for Mouseevent on map when in use of markerDragEnd() method. For @agm/core version < 3.0, MouseEvent doesn't come anymore from @agm/core i.e., Usage will depend on the version of AGM. πŸ˜€

For the version that I've implemented i.e., @agm/[email protected], you've to use MouseEvent as follow :

mapClicked($event: google.maps.MouseEvent): void {
    this.markers.push({
      lat: $event.latLng.lat(),
      lng: $event.latLng.lng(),
      draggable: true
    });
  }

Cheers!! πŸ₯‚

angular-mapit's People

Contributors

p-r-i-t-h-v-i avatar

Stargazers

 avatar

Watchers

 avatar

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.