Skip to Content

How to configure google maps with nodes in drupal

Here is the solution.

Step 1: Install Locations Module
Step 2: Install Gmap Module
Step 3: Enable Gmap Location Module Which is part of Gmap Module.
Step 4: Set the Google Map Key Here admin/settings/gmap
Step 5: Go here admin/settings/location/main and select default country and check Use a Google Map to set latitude and longitude
Step 6: Go to content type edit tab and select Locations Collapsible tab, under that go to Number Of Locations and set min, max, Number of locations that can be added at once as 1,1,1 respectively
Step 7: Go to your nodes click on edit and you can see location settings, there give the address and longitude and latitude which you can pick from map or you can set. Longitude and Latitude are very important to locate a node in map
Step 8: Save the node.
Step 9: admin/settings/gmap_location go here, under node map select marker action as open link.
Step 10: Now go to map/node you can see all your nodes here.
Step 11: If you want to enable map for nodes go to blocks, enable the block called Location Map

That's it you are done. Please feel free to contact me if you have any queries. :-)

Tagged in:

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.