Download & Extend

Duplicate map detected! GMap does not support...

Project:Trackfield
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:raintonr
Status:active

Issue Summary

"Warning: Duplicate map detected! GMap does not support multiplexing maps onto one MapID! GMap MapID: trackfield_map_6504"

This warning started to occur I think after a recent Gmap update. This occurs in nodes where I display both a 'Trackfield' map and a 'GMAP Field' map (http://drupal.org/project/gmapfield) on the same page.

Despite the warning both maps appear to function OK.

Comments

#1

Same error here, but mine seems to be related to nodewords module. see http://drupal.org/node/404424

#2

Ah... sounds like we need to add a formatter ID or something to separate teaser/preview/etc. display according to this:

http://drupal.org/node/404424#comment-1579854

#3

Yes I have the same problem, when I turn off nodeword everything works!
Is there any soloution to solve this problem, without turning off nodewords module?

#4

Assigned to:Anonymous» raintonr

#5

Status:active» fixed

Should be fixed with this commit: http://drupal.org/cvs?commit=278200

Please wait for dev build to be created and confirm.

#6

First of all, thanks for the patch.
I tested the dev version and the problem is already there...Only the preview of an track works.
Same error again...

#7

Re: #6. Can you please describe exactly what you did and how you have your node setup in such a way as to try and show more than one map for the same node?

Could you also please look in your page source at the IDs on the Gmap divs and post what they are.

#8

I' ve posted you an PN!

#9

Status:fixed» active

Oh, I see. Well, what can I say, created a small test and saw the error message:

Duplicate map detected! GMap does not support multiplexing maps onto one MapID! GMap MapID: trackfield_map_1066_default

However, when looking at this page note that there was only one instance of that MapID on the page.

How about this - can someone tell me what is supposed to happen here? Does anyone expect to see 2 instances of a map on the page? If you don't expect to see 2 instances can anyone explain why the theme_gmap function (the source of this error) is being called twice for your nodes?

#10

Thanks for testing!
But why does the preview work?
Is it because of the gmap location modul, that I use for linking the node to an map?

#11

Sorry, but I have no idea. Could you please answer #9... what exactly are you expecting to happen? Like I said, if you don't expect 2 Gmap instances then this might be a bug elsewhere.

#12

I have also no idea...For the nodetype I disabled the gmap location Field, so that only the Trackfield was on this node.
But the same error happend.
I have also seen only one instance of the Map ID in both cases!
I think it is only because of nodewords.

#13

Status:active» closed (duplicate)

I'm sorry, am gonna close this as a duplicate of #404424: Duplicate map detected!. It's clearly not limited to trackfield so a GMAP issue.

#14

Status:closed (duplicate)» active

Setting this to active because I'm not sure that it's a bug in Gmap. Regardless of where the "blame" lies, the solution I have is specific to trackfield_map.

In trackfield_map.module at or near line 251:

          $gmap = sprintf('[gmap zoom=%d |center=%s |width=%dpx |height=%dpx |id=%s %s%s%s]',
            $zoom,
            $map_centre,
            $gmap_width, $gmap_height,
            "trackfield_map_$node->nid".$node->content['field_course_map']['#context'],
            $trackfield_map_format_sizes[$formatter]['gmap_attr'],
            $path,
            $markers);

specifically: "trackfield_map_$node->nid".$node->content['field_course_map']['#context'],

That gives the map a different ID when generated as a teaser than when it is generated in the full view.

#15

Sorry, my above example was for 6.x-1.0. On the dev version, change line 256 to

            "trackfield_map_" . $node->nid . "_$formatter_".$node->content['field_course_map']['#context'],

I suppose I should really just roll a patch, huh?

#16

I tried the fix recommended at http://drupal.org/node/404424 but it hasn't solve the problem with Duplicate Map Detected errors still occurring quite often on my site. So what is the solution for this in version 6.x-1.0?

#17

@brisath... please try the 6.x dev. version of the code on a test site. I'm sorry, the 1.0 is pretty old.

This commit could help (22 Oct 2009):

http://drupalcode.org/project/trackfield.git/commit/4b19d8f

#18

Thanks, I did the update of the file trackfield_map.module based on the above code, but still getting the error:
"Duplicate map detected! GMap does not support multiplexing maps onto one MapID! GMap MapID: trackfield_map_169_default"

The real concern is that it is showing to Anonymous users.

#19

Re: #18... can you share the URL on your site that is causing this?

#20

Try clicking both of these links and you should get it upon a subsequent click of the link

http://lagranderide.com/bicycle/mtb/mera/high-ground-traverse
http://lagranderide.com/bicycle/mtb/mera

#21

Re: #20 I couldn't get an error on this page by refreshing:

http://lagranderide.com/bicycle/mtb/mera

But yes, there is a problem on this page:

http://lagranderide.com/bicycle/mtb/mera/high-ground-traverse

I note on there that the gmap data is in the header. On my production site this is not in the header, but by the field. Eg:

http://nobmob.com/node/7621

What version of Gmap are you using?

#22

Re:21
GMap Module 6.x-1.x-dev (2011-Mar-31)

#23

Re: #22.

The site I have working is using GMap 6.x-1.1-rc1. Yes, I'm lazy with updates but it's working for me so why change?

Could you please install that and confirm that this may be a compatibility issue with the newer version? If that turns out to be the case then at least we know the fault and can work on a fix.