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
+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.

| improve this answer | |
  • Yes, but it doesn't seem to work for me. – vintorg Jan 11 '16 at 8:50
  • any error message? – Schubie Jan 14 '16 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. – vintorg Jan 16 '16 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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.