Hello, Great module. I have been testing it out to see if it will work for my needs and I have found a problem with having multiple locations to geocode on one node form. My site requires me to have potentially many locations on one node. I have set up a starting point field group, field groups for stops in between, and a field group for the final destination. Each field groups is tabbed in vertical tabs, and has a location point field (using Openlayers Geocoder) and a date, time, line items, etc. I am using the Openlayers Geocoder to autocomplete other fields that I use for views. The problem I am having is when I go to the first location and type in the search, the location comes up, and it marks it on the map, and populates my fields, but when I go to the second field group, the map is not there. So I try to type in the location to see if the fields will populate but I get nothing. The search window does find the location and when I click on it, it autocompletes the search window, but not the WKT field, and not my other fields.

I was hoping there was a way to be able to do this without the map. I really don't need a map to set my location. I mainly need the search window to type in locations and addresses and get the geo data, and populate my fields for use in views. I tend to use many locations on one node, so having the map just clutters up the node form, and doesn't really serve any purpose for me. I do like the Openlayers concept for viewing the geo data in views, etc. but not when submitting the form. I really hope I can get this to work for me.

Any help would be greatly appreciated :) Thanks

Comments

steinmb’s picture

Hi
Have you tested latest dev. version, if not, do you mind re-testing? I should work, though there will always be bugs :)

tm541’s picture

Hi, I have tested both the dev version, and alpha 5 version with the patch. It works great with only one location, but not with multiple.

steinmb’s picture

Version: 6.x-2.0-alpha5 » 6.x-2.x-dev
Assigned: Unassigned » steinmb

Hmm, could be a combination of field_group, or perhaps the theme/js you are using. Have seen a few of them without been able to reproduce them locally. I'll do some tests on a clean install with Garland, and nothing much else.

tm541’s picture

That would be great. I am using Garland them, with several installed modules. I use vertical tabs to separate the field groups. I should mention that I had previously been using Google Maps Tools module, but I had to uninstall it, as it seems pretty dead at the moment. My core, and all other modules are up to date.

tm541’s picture

FYI, I just tried taking the Starting Location, and Ending Location fields out of the field groups so they would be the first 2 fields on the form, and not in any field group, and it worked. It did show the maps, it populated the WKT fields, marked it on both maps, and populated my autocomplete fields. So it does work, but for some reason not in field group vertical tabs. I really love this module, and I hope there is a way to have it work with my configuration. I have a logistics management web site, that tracks deliveries of products, and requires many fields per pickup / delivery location. It makes it so much easier and user friendly to have each pickup / deliver field group in its own tab. Thank you so much for helping me look into this Steinmb, If you have any ideas please let me know. Thanks again.

tm541’s picture

I have also found that adding a 3rd Geocoder field makes the first 2 stop populating the WKT fields. The first 2 fields are still autocompleting the the other fields but not the WKT fields, and those fields are required so trying to submit a new node I just get "Starting / Ending Location field is required" error message when trying to submit new node.

tm541’s picture

Hello, I just ran a test on a fresh install of Drupal core, and fresh install of all the required modules for Openlayers Geocoder. I used no other modules but the ones necessary to preform the test. The results are that if you add multiple Openlayers Geocoder fields only the last one will produce geocoding WKT results in the field. I have been able to get all the fields to autocomplete the other data, but not the WKT data. To confirm this I added 5 Geocoder fields to a page and tried adding locations to the search windows. The search windows work, and the location is tagged on the map, but no results are produced into the WKT field, accept for the last field which does produce the results in the WKT field.

In addition to this adding geocoder fields to multiple tabs breaks the UI completely, the map disappears and no results are produced, not even to the autocomplete fields.

Hope this helps, and I really hope we can get this to work. Hopefully its just a simple patch. Im keeping my fingers crossed :)

tm541’s picture

Does anyone know the chances or likelihood of being able to have this module work with more then one location on a node form?

steinmb’s picture

Project: OpenLayers Geocoder » Openlayers
Component: Code » OL CCK

Did a few tests and seems this is a problem is in OL CCK not OL geocoder, moving on.

tm541’s picture

Hello Steinmb, thank you for checking it out. So do you think there will be a way to get it to work with multiple Geocoder fields?

tm541’s picture

Im going to try it with the new OL beta 3 version.

tm541’s picture

I tried it with the last version of OL 6.x-2.0-beta3 and it was the same result. Also tried it after updating to the latest version of CCK, and still no luck.

tm541’s picture

Title: Can't gecode multiple locations on one form. » Can't geocode multiple locations on one form.

Hello Steinmb, I'm not sure if this will be helpful but, I tried configuring my node using Rules Geocoder and it does work with that widget. I set up my node with 4 separate locations so far, all in there own field group, and it seems to be working as expected. The Rules Geocoder is also using the OL CCK component, and its working.

I hope that is helpful information. The Rules Geocoder module provides me a way to move forward with my site, but I would still prefer to be able to use the OL Geocoder module if possible. Thank You

tm541’s picture

Issue summary: View changes

revised my grammar

ken-g’s picture

Status: Active » Closed (outdated)