Google Maps: Just Awesome

Google Maps crowdsources more than just traffic data - get real-time information on your destination, including wait times, operating hours and more. Google Map is arguably the most popular map application and this should come as no surprise because of Google’s stronghold on web surfing and navigation e.g. Google Earth, but you would be wrong to think that there aren’t alternatives that are just as cool and in some cases, even cooler. The Google Maps Timeline feature is really cool for those who like to keep a digital diary. Google Maps will automatically store a history of everywhere you've been. To review your Timeline, tap the hamburger (three vertical lines) icon and choose 'Your Timeline.' RELATED: 10 Awesome Things You Didn't Know Your Google Home Could Do.

When building a website, you often need to include a map to give people a better sense of direction. Google Maps is the most popular mapping service today and it offers a wide variety of tools and services that you can use.

In this tutorial we will show you how to easily add a map to your website and customize it using the gMaps.js library. It is a simple and easy to use library, that allows you to use the full potential of Google Maps without using large amount of code.

Project Overview

To demonstrate the usage of Google Maps, we have created a simple design using HTML and Bootstrap 4. You can check the image below for the final result.

Layout

Our design consists of a Bootstrap row and two columns. In the left column we show the Google map and in the right column we have headings, with some text, font-awesome icons and a small image gallery.

Map Configuration

In order to use Google Maps, you need to import the gMaps.js library and the Google Maps API. It requires an API key, so if you already have one you can use it, otherwise you can go to this link to learn how to create one. When you have your key ready, simply replace the 'YOUR_API_KEY' part of the script.

Now we need to generate the map. We create a new map object and as parameters we set the selector ('#map'), and the latitude and longitude of the point we want to show on the map.

Next we need to add a marker on the map. To do so, use the addMarker() method with the latitude and longitude where you want to place it. We can also set the initial zoom at which the map is displayed using the setZoom() method with an integer number as parameter. The lower the number, the more 'zoomed in' the map is.

Styles

The styles are located in a separate CSS file. Since we are using Bootstrap, most of the styling is done by the framework. We have added some margin and padding tweaks, font colors and box-shadows.

Google Maps: Just Awesome Gif

Maps:

Google Maps in Bootstrap Studio

The Bootstrap Studio app offers a fast and easy way to configure Google Maps without having to write a single line of code. You can find detailed instructions on how to add Google Maps in your projects in the Bootstrap studio tutorials section.

Google Maps: Just Awesome Backgrounds

Conclusion

You can get the full source code for this tutorial, from the Download button near the top of the page. You are free to customize and use it in all your projects, for commercial or personal use, no attribution required (our license).

Rignite is a software solution that makes it easy to run social media campaigns to promote your business for Cyber Monday. With Rignite you can: Boost engagement by requiring social actions for entry–post likes or comments, tweets with a photo and hashtag Reward more than one winner to attract more participation. A Cyber Monday Campaign that Works As shopping is the official national hobby of the United States (and many other countries), it's important that we not leave the internet off the list of places we can go wild finding deals during the Holiday Season. Cyber Week 2020 is in full swing as I write this. Soon we’ll see if the Black Friday Cyber Monday predictions came true and how the holiday shopping pie looks in 2020. I know that in 2021, many business owners will want to look back at this year’s BFCM campaigns, so this collection goes out to them—and anyone who simply enjoys looking at campaign visuals and language like I do. Despite having roots in the United States, companies from across the globe are now creating campaigns around Cyber Monday. When Is Cyber Monday 2020? This year, Cyber Monday falls on Monday, November 30, 2020. But that’s not to say that’s when it shows up every year. Cyber Monday is frequently packaged together with Black Friday, and you’ll often see marketers advertising cyber weekend or cyber week deals. But Cyber Monday is growing so fast, that it’s beginning to demand attention in its own right. In the last 12 years, spending on Cyber Monday has increased from 484 million to 3.36 billion. A cyber monday campaign that works podcast.

Bootstrap Studio

The revolutionary web design tool for creating responsive websites and apps.

Google Maps: Just Awesome Meme

Learn more