This upgrades the base module only, rest is untouched. Nevertheless, it may be used as a temporary solution if you just need a simple map.

Just needed a quick fix really, however going through all these 81 points took a couple of hours, so I though I'll share this anyway, at least you can use it as a reference what's to be updated.

Changes:
- new syntax in gmap_menu (see point 1)
- implemented gmap_theme hook for registering all theme_* things (18)
- updated cache_set and cache_get calls (28 & 29)
- changed url() arguments in one case (7)
- changed Drupal.extend to jQuery.extend (60)
- added core=6.x to the gmap.info file :)

Comments

convexk’s picture

Hi,

first thanks for the great and useful work.

Does the patch work for you, i.e. are you able to enable the GMap basic module in 6.1 distribution.
I am still getting the base module as "version incompatible" by my 6.1 distribution.

Btw does anybody have more information on how drupal 6.1 checks for version compatibility of uploaded modules?
That would serve as a good start for finding incompatibilities. Taking this one step further, even output to the user
the code parts that have been found incompatible.

DenRaf’s picture

StatusFileSize
new26.3 KB

I did a bit further on the diff. There is still a problem with displaying the map itself. So any help is more then welcome.

pobster’s picture

It's probably not displaying because you haven't created entries in hook_theme for all the theme calls? I only see one for 'gmap_marker_popup', there's plenty more than that! Also the one you have got in that hook seems to have a stray bracket in it? 'gmap_marker_popup('??!!!

Incidentally the gmap settings form wouldn't submit until I removed the $form, &$form_state from the function declaration; they're not required here anyway as the form magic is supplied by drupal_get_form in hook_menu.

Pobster

DenRaf’s picture

StatusFileSize
new27.54 KB

With this new patch, you can see the map. The problem is now that it doesn't calculate it's position.

webchick’s picture

...

romipoison’s picture

how to apply patch?

chadd’s picture

also wondering how to apply patch?

axyjo’s picture

Sweet. I was googling for hours until a simple drupal site search gave me this. Can I add patches if I find any more bugs?

Thanks.

gellpak’s picture

subsub

thechraveler’s picture

subscribe

Anonymous’s picture

Subscribing

webchick’s picture

To those who want to see this ported faster, there is information about the current state of things, as well as what you can do to help, at The State of Geospatial in Drupal. Hope to see some of your patches, documentation, and reviews. :)

encho’s picture

subscribing

Anjaro’s picture

subscribing...

jasontanner’s picture

subscribing

zhte’s picture

subscribing

zmove’s picture

Hi,

Is there a way to get a full D6 package, because the module evolved between the patches and I'm afraid to apply patch by hands and see errors cause the patch apply on a old version. (yes, I patch by hands because patching on windows sux, in fact, patching in command line sux...) ^^

dave reid’s picture

subscribing

dan_aka_jack’s picture

subscribing...

bdragon’s picture

Status: Needs work » Fixed

Drupal 6 is equally supported and in sync with Drupal 5 development now.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.