1

I am using Search API with Search API DB, and Facets, with Search Views. I want to display a map to plot the results from the search. Is this possible? I have looked everywhere and can't seem to figure it out.

My nodes currently use geofield for the individual node pages.

2
  • did you try this, drupal.org/project/getlocations Commented Dec 30, 2015 at 10:02
  • I did, but couldn't get it to work. Commented Dec 30, 2015 at 10:28

2 Answers 2

2
+50

Have you ever tried these two modules? https://www.drupal.org/project/gmap https://www.drupal.org/project/location

With these two modules, you can create google maps and put your location data into a referenced google map.

3
  • Yes, but it doesn't seem to work for me. Commented Jan 11, 2016 at 8:50
  • any error message? Commented Jan 14, 2016 at 12:48
  • It's because I don't have something configured right I think. At this point, I think I'm going to add the lat/lng vals to the Drupal JS object, and gather them up and plot them with Google Maps API. Commented Jan 16, 2016 at 16:40
1

You could simply write your own field.tpl file for displaying that field and see how to display google map based on geofield values take a display google maps using Geolocation values.

Your tpl file will be named views-view-field--{field_name}.tpl.php be in the adefault theme folder you could check: views -> advanced -> Theming information and rescan templates button.

Copy the file views-view-field.tpl.php and read its docs for variables available.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.