Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/buildwithlal/google-maps-multiple-markers

Draw multiple location markers on Google maps using Google Maps API
https://github.com/buildwithlal/google-maps-multiple-markers

google-maps google-maps-api google-maps-javascript markers

Last synced: 8 days ago
JSON representation

Draw multiple location markers on Google maps using Google Maps API

Awesome Lists containing this project

README

        

###Google Maps multiple Markers
=================================

1. index.html has a **div** to show Map
2. map_script.js - javascript to draw multiple markers on Google Map
3. Link to Google Map API

>Automatically center the map fitting all markers on the screen

**NOTE**

Please put your [Google console](https://console.developers.google.com) API key in index.html
```html

```

Get your lat, long list and pass it to `var locations` in map_script.js

```javascript
var locations = [
[31.5546, 74.3572],
[34.0150, 71.5805],
[30.1830, 66.9987],


];
```

For more details, read this [post](http://sparkanswers.com/google-maps-multiple-markers/)

Cheers!