Menu

Joomla Blog

Tutorials, reviews, case studies and other tips to help website owners and website developers master the Joomla content management system.

Put a Google map on your website

Before Google maps came along, creating a map for a website was tedious. We used to have to source an original map, trace the required roads onto paper, scan it, add color and then hope that the client liked it. Even a simple map would take a couple of hours.

I love Google Maps. The whole process takes less than 5 minutes when you use this free Googlemaps plugin. However there is one challenge. If you want to include a marker on the map, you need to know the latitude and longitude of the location. There are a few ways to do this but one of the easiest is to do the following:

1. Go to Google Maps and find your location by entering a street address.
2. Right click on your desired location and choose the "Center Map Here" option.
3. Enter the following line into your browser's address bar:

javascript:void(prompt('',gApplication.getMap().getCenter()));

4. A pop-up will appear with the coordinates. Make a note of this and enter this into your article as instructed by the plugin.

Update: there are now easier methods to find latitude and longitude. The entire process of installing this extension and inserting a map is demonstrated in our Beginner Plus Joomla tutorials.

Rate this blog entry:
Creating a blog using Joomla
Joomla Job Boards

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment

Free Joomla TutorialLearn Joomla for free with our 16 lesson, 2 hour course.

Get Started