Multiple locations on a single gmap

Justin W Freeman - April 15, 2009 - 12:21
Project:GMap Module
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:rooby
Status:needs review
Issue tags:location, location multiple locations, multiple locations
Description

Issue #338740: Display locations as polygons on gmap views originally had changes to allow locations to be displayed as polygons on a gmap view as well as allowing multiple locations to be selected on a single gmap for node locations (instead of having a different map per location).

That issue has now been split into two. That issue takes care of displaying locations as polygons and this one is for allowing multiple locations on a single map.

For this patch to work you also need to apply a patch to the location module, which can be found here - #338745: Multiple locations on a single map.

This patch is for gmap 5.x-1.1-rc1.

In the next few days I will look at porting these patches to drupal 6 as I get time.

AttachmentSize
gmap_multi_loc_single_map_5.x-1.1-rc1.patch17.76 KB

#1

Aren Cambre - April 15, 2009 - 13:38
Status:patch (to be ported)» needs work

Subscribe. This is a GREAT improvement.

Probably should be "needs work" since patch goes to 6.x first then backported? (Am I splitting hairs?)

#2

Justin W Freeman - April 15, 2009 - 22:26

No, that's fine.

#3

YesCT - April 17, 2009 - 10:49

tagging

#4

Aren Cambre - May 15, 2009 - 02:37

How is the 6.x patch looking?

#5

Justin W Freeman - May 26, 2009 - 03:02

Going to start working on a patch for this for drupal 6 now.

#6

Justin W Freeman - May 29, 2009 - 02:00
Assigned to:Anonymous» Justin W Freeman
Status:needs work» needs review

Here it is.

This patch is for 6.x-1.x-dev (2009-Apr-18).
The patch does not apply to 6.x-1.1-rc1 but if someone really needs it to another patch can be done for it. Should be a minor change.

Please test this and let me know if you come across any issues.

*And remember, you need the patch for location here - #338745: Multiple locations on a single map

AttachmentSize
gmap_single_map_6x-1x.patch 18.07 KB

#7

Aren Cambre - June 16, 2009 - 01:39
Status:needs review» needs work

For what it's worth, ran this on the June 9 1.x-dev (don't know where to find he Apr 18 dev):

$ patch gmap.module gmap_single_map_6x-1x.patch
patching file gmap.module
The next patch would delete the file locpick.js,
which does not exist! Assume -R? [n] y
patching file locpick.js
patching file locpick_multi_map.js
patching file locpick_single_map.js

I guess something changed?

#8

Justin W Freeman - July 7, 2009 - 08:49

I have run the patch in #6 successfully for the 2009-Jun-09 version of gmap 6.x-1.x-dev (also against HEAD from CVS).

If you put the patch file in the gmap directory and run it with:

patch -p0 < gmap_single_map_6x-1x.patch

it should work.

It won't work properly without the -p0

#9

Justin W Freeman - July 7, 2009 - 09:13
Status:needs work» needs review

#10

Justin W Freeman - July 12, 2009 - 11:26

Here is a port of the patch in #6 to drupal 5.

It is a little bit improved from the original drupal 5 patch and goes with the much better drupal 5 patch in #338745: Multiple locations on a single map comment #28.

It is for gmap 5.x-1.x-dev (2009-Apr-18).

AttachmentSize
gmap_single_map_5x-1x.patch 18.06 KB

#11

Aren Cambre - July 22, 2009 - 03:53

Tag is missing a comma.

#12

mrgoltra - July 23, 2009 - 08:01

subscribing

#13

johnmullin2003 - July 26, 2009 - 20:47

subscribing +1

#14

YesCT - July 27, 2009 - 03:48

tagging... actually the tag is used on many location module issues, and this ties into that. :) adding back.

See: http://drupal.org/project/issues/search?text=&projects=&assigned=&submit...

#15

gjmokcb - July 27, 2009 - 21:16
Category:feature request» support request

I have installed the two patches, checked the "single map" box, updated all modules, etc, but locations works exactly as before. I suspect the gmap patch, because the locations patch installs smoothly, but I get variations on this error when installing the gmap patch:

patching file gmap.module
patching file js/locpick.js
Reversed (or previously applied) patch detected! Assume -R? [n] n
Apply anyway? [n] y
Hunk #1 FAILED at 1.
File js/locpick.js is not empty after patch, as expected
1 out of 1 hunk FAILED -- saving rejects to file js/locpick.js.rej
patching file js/locpick_multi_map.js
patching file js/locpick_single_map.js

If I respond "y" to Assume -R, I still get an error. If I delete locpick.js before patching, the patch complains that it is trying to delete locpick.js but can't find it. In every variation, I end up with a failed hunk.

Am I doing something wrong?

#16

gjmokcb - July 27, 2009 - 21:17

Clarification: I installed the patch thusly: patch -p0 < gmap_single_map_6x-1x.patch

#17

Aren Cambre - July 28, 2009 - 01:45
Category:support request» feature request

(reverting category)

#18

Justin W Freeman - August 6, 2009 - 00:08

@gjmokcb:
I will be having a look at a couple of minor bugs within the next week so I'll check out your error then.

#19

Chris Einkauf - August 7, 2009 - 00:07

Subscribing

#20

AlejandroTheGreat - August 7, 2009 - 04:08

Subscribing

#21

rooby - November 30, 2009 - 02:58
Assigned to:Justin W Freeman» rooby

I have done a lot of work on this (I work for Justin) and there is not really any free time for us to be working on this at the moment so I will do it in my own time.

I hope to get to it pretty soon and fix up a few more details.

 
 

Drupal is a registered trademark of Dries Buytaert.