Attached is a new version of Getdirections with a new submodule getdirections_fields that will add a getdirections map to an entity eg node. This is still very alpha and only works with getlocations_fields although support for other locative modules such as Geofield, Geolocation or Location should be possible.
Getdirections itself has been reworked so that forms and themes can be shared with getdirections_fields.

It is probably best to uninstall Getdirections before installing the new one.

CommentFileSizeAuthor
#1 getdirections-v2a.tar_.gz52.63 KBhutch
getdirections-v2.tar_.gz51.97 KBhutch

Comments

hutch’s picture

StatusFileSize
new52.63 KB

Now with support for geofield and (if available) addressfield. Geofield support tested, Geolocation and Location modules not tested.

hutch’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev

I have released Getdirections-7.x-3.x-dev which includes getdirections_fields.

wrd’s picture

Issue summary: View changes

This seems to be working well, except for one quirk: the field display lists directions 2-3 times.

E.g., let's say I have directions from 1 First Ave to 100 Second Street. If I use the GetDirections Link display to go to a GetDirections page, it works as expected: map on left, and then directions:

- Step 1
- Step 2
- Step 3
- Map Data Copyright Google blah blah blah

If I use the GetDirections Fields display, I get the map on the left, and then directions:

- Step 1
- Step 2
- Step 3
- Map Data Copyright Google blah blah blah
- Step 1
- Step 2
- Step 3
- Map Data Copyright Google blah blah blah
- Step 1
- Step 2
- Step 3
- Map Data Copyright Google blah blah blah

All sets of directions are identical.

hutch’s picture

I cannot replicate this with the information provided.
First of all, ensure that you are using the current stable version.
Flush the cache at least once.
Try it with another theme.
Check that there are no javascript errors and if there are what they are.
Explain in detail how your fields are set up, which module is providing the locative information and is the Getdirections map displaying the location correctly.
Try it in more than one browser, all the work involved in displaying the map and the directions list is done in the browser and is carried out by Google's software. The javascript instructions are the same wether you use the "inline" method or the separate getdirections page method.

wrd’s picture

Thanks for the response.

- Using 7.x-3.1
- Cache has been flushed several times
- Same problem occurs in Bartik as in my custom theme (which is Omega-based)
- No JS errors. Couple of warnings about deprecated functions coming from jQuery, but those happen without GetDirections enabled as well.
- Locative information is coming from geofield 7.x-2.1. The map is working correctly. The directions are also correct, apart from being duplicated.
- Problem occurs in both Chrome and Firefox.

New information: problem only occurs when I am logged in. I thought it might be something to do with the Navbar module, but disabled it with no change. I'll see if I can narrow it down further tomorrow.

roadsideok’s picture

wrd, did you ever find a conflict that caused this? I am having the same issue with 7.x-3.1+5-dev and using the Get Locations Field. The field works off of a Geofield with coordinates. The map displays correctly and the directions display correctly but display twice. For me, the issue occurs logged in or out and in Chrome, Firefox and IE. I am not using any of the advanced functions and am not using Colorbox.

summit’s picture

Wrong edit..sorry