I'm doing a test run of an upgrade from Drupal 4.7 to 5.3. Everything has gone smoothly, except that now when I try to access gmap views or map/node I get a map with no markers. There is also a popup window that says "Request for invalid marker set big/blue!" I have tried switching the markers for content types and have checked to make sure my markers were installed in the gmap module directory. Can someone please help? I have googled for this popup message and apparently no one else has experienced it (0 hits). Thanks.

Comments

bdragon’s picture

Category: bug » support

big/blue is one of the builtin ones. Getting that message means that the iconloader was not able to fetch the compressed markertype list properly or it was missing some stuff...

Did you copy the *entire* markers/ directory? The .ini files are important, they're used during runtime to put together the marker types metadata!

talansk’s picture

Hi

I have installed gmap in Drupal. I want to dispaly different destination and location on the map. They are color coded also. I like that so that one color could be for the clinics, one color could be for the pharmacies etc. and i want to focus only in U.S.A.

How can we do it. Please suggest me asap.

Regards With

Sachin Talan

bdragon’s picture

Status: Active » Closed (won't fix)

@talansk:
A) Please don't hijack unrelated issues.
B) Try the new gmap_taxonomy.module from the dev snapshot.

@OP:
I'm assuming this isn't still an issue, as I never heard back.

shenzhuxi’s picture

Finally, I got it.

Gmap 5.x-1.x-dev create a file markerdata.js at yourdomain/?q=map/markerdata.js. But the module assume that the clean urls is turned on, so ref "yourdomain/map/markerdata.js".

Solution:
If your host doesn't support clean url, change gmap.module line 80 into "drupal_add_js('?q=map/markerdata.js');"

Fixed?!

SlavviR’s picture

Version: 5.x-1.x-dev » 5.x-1.0-beta3
Component: User interface » Code
Assigned: Unassigned » SlavviR
Status: Closed (won't fix) » Active

same syndrome :(
release GMap - Jul-15
. Drupal 5.7

clean urls - they are enclosed.

it is important? i can not find file map/markerdata.js

files are copied in directory, are not damaged.

excuse me, english I bad know.

Nachtwind’s picture

Version: 5.x-1.0-beta3 » 6.x-1.x-dev

Got the same problem here, no matter which Marker has been set.
Markers are all in their corresponding folders and ini files are 'ok'.
Also i checked map/markerdata.js and it looks good to me:

// GMap marker image data.
Drupal.gmap.iconpath = "/modules/gmap/markers";
Drupal.gmap.icondata = { "/small/": { "f": [ "shadow.png", "blue.png", "red.png" ], "w": [ 22, 12 ], "h": [ 20 ], "i":....................

I should mention that i have 'niceer URLs' turned on.

Thanks in advance

bneel’s picture

Version: 6.x-1.x-dev » 5.x-1.0-beta3

Fixed here : http://drupal.org/node/286663

Benjamin

But this is weird because, it appreas for some maps.
For example I created 2 identical views. One is ok, but for the second one, the error message appears. The only difference between the 2 views is that the second one have an exposed filter. But nothing change when I delete the exposed filter.
Don't understand.
The cache have been purged.
Any idear ?
Ben

bshaf’s picture

Version: 5.x-1.0-beta4 » 5.x-1.0-beta3

I am getting the "Request for invalid marker set" popup since I updated to gmap-5.x-1.0-beta4 (September 17), but it says small gray. There is no small gray marker in the markers folder, only a normal-sized gray. All my markers work though, that's what is wierd. It happens when I edit or create a page that has a map to choose a location. I have it set that I can place a marker on the map to get lat. and long. The map displays the default marker.png. My source code contains:

<script type="text/javascript">
/* <![CDATA[ */
Drupal.extend({ settings: { "gmap": { "auto1map": { "width": "510px", "height": "350px", "zoom": 1, "maxzoom": "5", "controltype": "Small", "align": "None", "maptype": "Map", "mtc": "standard", "baselayers": { "Map": 1, "Satellite": 1 }, "styles": { "line_default": [ "0000ff", "5", "45", null, null ], "poly_default": [ "000000", "3", "25", "ff0000", "45" ] }, "line_colors": [ "#00cc00", "#ff0000", "#0000ff" ], "behavior": { "locpick": true, "collapsehack": true }, "markermode": "2", "id": "auto1map", "points": [  ], "pointsOverlays": [  ], "lines": [  ], "latitude": -22.902743, "longitude": -43.214721, "markers": [ { "latitude": "-22.902743", "longitude": "-43.214721", "markername": "small gray", "offset": 0, "opts": { "clickable": false } } ] } } } });
/* ]]> */
</script>

This appears right before the Current Coordinates (on a node/edit page), note the "small gray". I tried adding small gray to the small.ini file and placing a gray.png in the small folder, but it hasn't changed.

Any fixes for this?
Thank you for a very useful module.

bshaf’s picture

Version: 5.x-1.0-beta3 » 5.x-1.0-beta4

subscribing

bdragon’s picture

Version: 5.x-1.0-beta3 » 5.x-1.0-beta4

DOH!
bshaf: I know exactly what your problem is, and it's completely my fault.

I've been running with Bevan's additional markers patch for so long that I forgot it was there and I started relying on the markers in it.

I think it's high time to merge those markers in. I will do so.

bneel’s picture

This is a good news.

bdragon’s picture

Status: Active » Postponed (maintainer needs more info)

OK, there should be new beta5 releases out there in a few minutes. These contain the new markers.

bshaf’s picture

Thank you SO much, I asked for a fix and I got that plus all these great new markers! You guys are awesome!

bneel’s picture

I still have the message error. Not when I display a view, but when I go to the gmap module administration.
I cleared all cache, did an update and I downloaded the module test5 2 times.
I have some custom markers (around 20) and I completed the color.ini file to add my markers.
Any idear ?
Benjamin

der_tisch’s picture

I have the same problem in IE6, but not in FF2.
And the popup does only appear directly after I clicked the link to the page that contains the map.
When I reload the page the popup does not appear and the marker shows correctly.
I am using Drupal 6.4 and gmap-6.x-1.0-beta4.

der_tisch’s picture

New findings:

This problem does not occur on another site - even with IE6.

The only difference is:
On the site where the error occurs drupal resides within a subdirectory like http://www.developmentserver.com/otherdomain.de/

der_tisch’s picture

Version: 5.x-1.0-beta4 » 6.x-1.0-beta6

beta6 does not solve this problem for me.

The error still occurs on the site with drupal in a subdirectory. And again it does only appear directly after I clicked the menu link to the page that contains the map. When I just reload the page the popup does not appear and everything shows correctly.

If I put more than one map on the page the popup appears and the marker does not show on the first map. It is correctly positionned on the other maps. However it is not "small red" as requested but a red one with a dot in it.

bdragon’s picture

Hmm, I'll go double check my base path handling then.

bdragon’s picture

Ahh, IE6... Yes, I'm seeing some weirdness there.

bdragon’s picture

Hmm, are you running drupal core DRUPAL-6-1 from less than 9 days ago? It seems a patch went in recently that broke the way I was putting in the markerdata.js script tag.

bdragon’s picture

Well, I went and changed the way markerdata.js gets used.

It is faster and less hacky now, and it's also easier to reset when you add your own markers.

http://drupal.org/cvs?commit=143817
http://drupal.org/cvs?commit=143821

bdragon’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Considering this to be working now.

Sintetika’s picture

I am using :
Drupal 6.13
location-6.x-3.1-rc1
gmap-6.x-1.x-dev

tried also with

gmap-6.x-1.1-rc1.tar

but got the same problem and any marker is shown on my maps.
Have try also other marker managers but marker is not showing and got same eroor when I build a Gmap macro :

Request for invalid marker set ...

Any suggestion
Thanxs in advance

bneel’s picture

Status: Closed (fixed) » Active

Subscribe
I use RC1

bloke_zero’s picture

Some maps fine some maps give the invalid marker error rc1 drupal 6.13

crantok’s picture

I'm not 100% clear on whether this is the same problem or whether I should start a new issue.

I am creating a gmap with a single marker in my own module code.
When I do not set 'markername', everything works. The marker is shown with the default (red) icon.
When I do set 'markername' (regardless of whether the name is valid) I get the "Request for invalid marker set X" popup and no marker is shown.

The ini files mentioned earlier in this thread and the png files all seem to be present in the sites/all/modules/gmap/markers directory.

versions:
Drupal 6.14-dev
gmap 6.x-1.1-rc1 and gmap 6.x-1.x-dev (updated 9th June 2009) both give me the same problem.

I've pasted my code here in case I'm doing something less than sane and someone can tell me what it is:

  $output = '';

  $map = array_merge(gmap_defaults(), array(
    'width' => '100%',
    'height' => '400px',
    'zoom' => 11,
    'markermode' => 1,
    'latitude' => $location['lat'],
    'longitude' => $location['lon'],
    'rmtcallback' => url('map/node/load'),
    ));

  $map['markers'] = array();

  // add a marker for the submitted location
  $new_marker = array(
    'markername' => 'Blue',      // this is the troublesome line
    'latitude' => $location['lat'],
    'longitude' => $location['lon'],
    'opts' => array('title' => 'You are here')
    );
  $map['markers'][] = $new_marker;

  $output .= theme('gmap', array('#settings' => $map));

  print theme('page', $output);
tetty’s picture

any chance of someone summarising this page, has it been solved or not and if so what is the fix?

tetty’s picture

forget it, I figured it out all by my self ;D
that long since I had a problem, did not know what a CVS was

tetty’s picture

okay maybe I didn't figure it out
I'm using a very recent download and instalation so I'm guessing that the changes in CVS have already been made.
however I'm still having this problem

maybe I'm just a little lacking here and have missunderstood everthing

Chris Charlton’s picture

I'm having this issue no matter what markername I set.

Roulion’s picture

I have the same problem with a view where my markers are depending on a node field
you can see it here

garbo’s picture

FOUND THE CULPRIT!

I had the same issue where I created custom markers and a custom .ini file. Upon loading the map I got the message "Request for invalid marker set XXX"

After lots of tries I removed the file: www.yoursite.com.sites/default/files/js/gmap_markers.js
Then it works!

tetty’s picture

don't set a marker manager

gunnermultimedia’s picture

Same issue... all maps on several sites went down with "request for invalid marker set small blue". Turned off Google's GMarkerManager... all is well.

Melissamcewen’s picture

Yeah, I had the same experience. When I disabled clustering my markers work again, but it would be nice to use them both.

Anonymous’s picture

Had the same problem. Solved it with regenerating the .js-file and placing a copy of it in my sites/default/misc/ folder. The problem is, that the newly generated file is not automatically copied there. I'm using the private download method.

afagioli’s picture

TWIMC: Boost will cache that js fine in cache/perm/yoursite/sites/default/files/js/ also

dunx’s picture

When you add new sets via the ini file, you must regenerate the marker cache at /admin/settings/gmap. I was getting a permission problem copying a file from /tmp doing that and subsequently getting the missing marker set problem.

I had to change the perms on the /sites/default/files/js/gmap_markers.js file... although I guess deleting it would have worked just as well. Regenerated the marker cache and my new sets are now in that file.

rooby’s picture

Priority: Critical » Normal

Just doing a bit of issue queue maintenance.

Support and feature requests are not critical. For more information see http://drupal.org/node/45111

(I understand the critical status was left over from a long time ago)

surendra77c’s picture

Just enable and disable the module it will work ..

drush dis gmap
drush en gmap

no more popup will come "Request for invalid marker set big/red!"

kentr’s picture

Issue summary: View changes

Can this be closed? D6 is end-of-life and there are similar issues for D7:

* #2692971: Custom markers dir appears useless after update
* #2164713: Markers are gone - Request for invalid marker set error

The comments also imply that this issue is resolved as well as it can be.

dharmeshbarot’s picture

Just for note if you are using drupal 7 then go to the view where you have created view with gmap formatter on gmap formatter setting you can find the "Marker / fallback marker to use" option just change the icon option it will work!