I'm trying to create a custom marker for my gmap view, but I can't seem to figure it out.

Following the directions, I created my .png files and uploaded them to the markers directory. I then created a new .ini file with the following code:

; Defaults
[defaults]
shadow = "candycane_shadow.png"
anchorX = 7
anchorY = 19
infoX = 10
infoY = 2

; Marker sets
[candycane]
name = "Candy Canes"
sequence = "candycane.png"

; Files

I uploaded the .ini file to the markers directory, and cleared the cache.

My custom marker now appears as an option in the dropdown lists. However, when I try to load a map that uses it, the following error message pops up:

Request for invalid marker set candycane!

Help?

Comments

gateone’s picture

Exactly the same issue with Gmap 6.x-1.0-rc2

gateone’s picture

Exactly the same issue with Gmap 6.x-1.0-rc2

AlxM’s picture

Hi,

Im having this same problem with 5.x-1.0 and was wondering if anyone has figured this out yet?

matthew_ellis24’s picture

I was having this problem. I cleared all the drupal caches (using the devel block) and cleared the marker cache several times with the GMap button and for some reason it started working all of a sudden. What I've also found is that sometimes you have to go to the vocabulary in question, edit all the terms with custom markers and just click save. You don't need to change anything, you literally just have to hit save.

patricio.keilty’s picture

Version: 5.x-1.0-rc2 » 5.x-1.0

Same issue here using D 5.15 & Gmap 5.x-1.0. I have tried several times devel cache clearing and also Regenerate marker cache... still same error message. The only way not to get the alert popup seems to be selecting a different marker set.

lavignej’s picture

Are you by chance using private files mode? I was also having this issue until I remembered I had to manually copy the re-generated gmap_markers.js file to a location accessible by the web server. I have it located at "misc/gmap_markers.js" now and everything is working. If you're not using private files mode, make sure your web server can write to files/js folder.

nemchenk’s picture

"Rebuild menus" worked for me. Drupal 6.13 and GMap 6.x-1.1-rc1.

selinav’s picture

Version: 5.x-1.0 » 6.x-1.1-rc1

Can you give me the url to create its custom marker, please?

johnv’s picture

Status: Active » Closed (won't fix)

Closing this very old issue. Please reopen if it is still valid.

Anonymous’s picture

Version: 6.x-1.1-rc1 » 7.x-2.11
Component: Miscellaneous » Code
Category: Support request » Bug report
Issue summary: View changes
Status: Closed (won't fix) » Active

This is actually still an issue...

Anonymous’s picture

Also I'm using a custom markers directory outside of the gmap module. Why does this module make me insert files into it as the default method of doing this? What if I want to upgrade the module?

_KurT_’s picture

Assigned: Unassigned » _KurT_
_KurT_’s picture

StatusFileSize
new574 bytes
_KurT_’s picture

StatusFileSize
new572 bytes
_KurT_’s picture

Version: 7.x-2.11 » 7.x-2.x-dev
_KurT_’s picture

Status: Active » Needs review

Guys, please review it!

_KurT_’s picture

Assigned: _KurT_ » Unassigned
Ives’s picture

After upgrading to latest version, I was missing my custom markers (in custom path), error "Request for invalid marker set". Patch #14 fixed it for me.