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
Comment #1
gateone commentedExactly the same issue with Gmap 6.x-1.0-rc2
Comment #2
gateone commentedExactly the same issue with Gmap 6.x-1.0-rc2
Comment #3
AlxM commentedHi,
Im having this same problem with 5.x-1.0 and was wondering if anyone has figured this out yet?
Comment #4
matthew_ellis24 commentedI 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.
Comment #5
patricio.keilty commentedSame 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.
Comment #6
lavignej commentedAre 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.
Comment #7
nemchenk commented"Rebuild menus" worked for me. Drupal 6.13 and GMap 6.x-1.1-rc1.
Comment #8
selinav commentedCan you give me the url to create its custom marker, please?
Comment #9
johnvClosing this very old issue. Please reopen if it is still valid.
Comment #10
Anonymous (not verified) commentedThis is actually still an issue...
Comment #11
Anonymous (not verified) commentedAlso 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?
Comment #12
_KurT_ commentedComment #13
_KurT_ commentedComment #14
_KurT_ commentedComment #15
_KurT_ commentedComment #16
_KurT_ commentedGuys, please review it!
Comment #17
_KurT_ commentedComment #18
Ives commentedAfter 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.